Prepare an unsigned Uniswap V4 fair-launch listing for a CRT
curl --request POST \
--url https://mag3nt.com/api/cards/{id}/crt-market/prepare \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"keepBps": 123,
"startingMcapEth": 123,
"startingValuationUsd": 123,
"devBuyEth": 123,
"slippageBps": 50
}
'import requests
url = "https://mag3nt.com/api/cards/{id}/crt-market/prepare"
payload = {
"keepBps": 123,
"startingMcapEth": 123,
"startingValuationUsd": 123,
"devBuyEth": 123,
"slippageBps": 50
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
keepBps: 123,
startingMcapEth: 123,
startingValuationUsd: 123,
devBuyEth: 123,
slippageBps: 50
})
};
fetch('https://mag3nt.com/api/cards/{id}/crt-market/prepare', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://mag3nt.com/api/cards/{id}/crt-market/prepare",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'keepBps' => 123,
'startingMcapEth' => 123,
'startingValuationUsd' => 123,
'devBuyEth' => 123,
'slippageBps' => 50
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://mag3nt.com/api/cards/{id}/crt-market/prepare"
payload := strings.NewReader("{\n \"keepBps\": 123,\n \"startingMcapEth\": 123,\n \"startingValuationUsd\": 123,\n \"devBuyEth\": 123,\n \"slippageBps\": 50\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://mag3nt.com/api/cards/{id}/crt-market/prepare")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"keepBps\": 123,\n \"startingMcapEth\": 123,\n \"startingValuationUsd\": 123,\n \"devBuyEth\": 123,\n \"slippageBps\": 50\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://mag3nt.com/api/cards/{id}/crt-market/prepare")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"keepBps\": 123,\n \"startingMcapEth\": 123,\n \"startingValuationUsd\": 123,\n \"devBuyEth\": 123,\n \"slippageBps\": 50\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"chainId": 123,
"to": "<string>",
"data": "<string>",
"value": "0",
"approvals": [
{
"token": "<string>",
"spender": "<string>",
"amount": "<string>",
"data": "<string>",
"kind": "token"
}
],
"vesting": {},
"preview": {}
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}Credential Tokens
Prepare an unsigned Uniswap V4 fair-launch listing for a CRT
Builds the unsigned calldata to list an already-deployed CRT on Uniswap V4 (Doppler-style fair launch). Mag3nt never signs or custodies liquidity; the creator wallet signs the returned transaction and any required token/WETH approvals.
POST
/
api
/
cards
/
{id}
/
crt-market
/
prepare
Prepare an unsigned Uniswap V4 fair-launch listing for a CRT
curl --request POST \
--url https://mag3nt.com/api/cards/{id}/crt-market/prepare \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"keepBps": 123,
"startingMcapEth": 123,
"startingValuationUsd": 123,
"devBuyEth": 123,
"slippageBps": 50
}
'import requests
url = "https://mag3nt.com/api/cards/{id}/crt-market/prepare"
payload = {
"keepBps": 123,
"startingMcapEth": 123,
"startingValuationUsd": 123,
"devBuyEth": 123,
"slippageBps": 50
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
keepBps: 123,
startingMcapEth: 123,
startingValuationUsd: 123,
devBuyEth: 123,
slippageBps: 50
})
};
fetch('https://mag3nt.com/api/cards/{id}/crt-market/prepare', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://mag3nt.com/api/cards/{id}/crt-market/prepare",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'keepBps' => 123,
'startingMcapEth' => 123,
'startingValuationUsd' => 123,
'devBuyEth' => 123,
'slippageBps' => 50
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://mag3nt.com/api/cards/{id}/crt-market/prepare"
payload := strings.NewReader("{\n \"keepBps\": 123,\n \"startingMcapEth\": 123,\n \"startingValuationUsd\": 123,\n \"devBuyEth\": 123,\n \"slippageBps\": 50\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://mag3nt.com/api/cards/{id}/crt-market/prepare")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"keepBps\": 123,\n \"startingMcapEth\": 123,\n \"startingValuationUsd\": 123,\n \"devBuyEth\": 123,\n \"slippageBps\": 50\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://mag3nt.com/api/cards/{id}/crt-market/prepare")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"keepBps\": 123,\n \"startingMcapEth\": 123,\n \"startingValuationUsd\": 123,\n \"devBuyEth\": 123,\n \"slippageBps\": 50\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"chainId": 123,
"to": "<string>",
"data": "<string>",
"value": "0",
"approvals": [
{
"token": "<string>",
"spender": "<string>",
"amount": "<string>",
"data": "<string>",
"kind": "token"
}
],
"vesting": {},
"preview": {}
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}Authorizations
API key prefixed with 'Bearer sx_live_...'
Path Parameters
Body
application/json
Basis points of supply the creator keeps, vested via Sablier. Capped at 2500 (25%).
Converted to ETH server-side using the live ETH price. Ignored when startingMcapEth is provided.
Optional creator buy at open, in ETH.
Response
Prepared transaction + preview