Create DAMM v2 custody launch transactions
curl --request POST \
--url https://public-api-v2.bags.fm/api/v1/token-launch/damm-v2/create-transaction \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"ipfs": "<string>",
"tokenMint": "<string>",
"wallet": "<string>",
"quoteMint": "<string>",
"feeClaimerWallet": "<string>",
"initialBuyQuoteAmount": 123,
"partner": "<string>"
}
'import requests
url = "https://public-api-v2.bags.fm/api/v1/token-launch/damm-v2/create-transaction"
payload = {
"ipfs": "<string>",
"tokenMint": "<string>",
"wallet": "<string>",
"quoteMint": "<string>",
"feeClaimerWallet": "<string>",
"initialBuyQuoteAmount": 123,
"partner": "<string>"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
ipfs: '<string>',
tokenMint: '<string>',
wallet: '<string>',
quoteMint: '<string>',
feeClaimerWallet: '<string>',
initialBuyQuoteAmount: 123,
partner: '<string>'
})
};
fetch('https://public-api-v2.bags.fm/api/v1/token-launch/damm-v2/create-transaction', 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://public-api-v2.bags.fm/api/v1/token-launch/damm-v2/create-transaction",
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([
'ipfs' => '<string>',
'tokenMint' => '<string>',
'wallet' => '<string>',
'quoteMint' => '<string>',
'feeClaimerWallet' => '<string>',
'initialBuyQuoteAmount' => 123,
'partner' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$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://public-api-v2.bags.fm/api/v1/token-launch/damm-v2/create-transaction"
payload := strings.NewReader("{\n \"ipfs\": \"<string>\",\n \"tokenMint\": \"<string>\",\n \"wallet\": \"<string>\",\n \"quoteMint\": \"<string>\",\n \"feeClaimerWallet\": \"<string>\",\n \"initialBuyQuoteAmount\": 123,\n \"partner\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<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://public-api-v2.bags.fm/api/v1/token-launch/damm-v2/create-transaction")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"ipfs\": \"<string>\",\n \"tokenMint\": \"<string>\",\n \"wallet\": \"<string>\",\n \"quoteMint\": \"<string>\",\n \"feeClaimerWallet\": \"<string>\",\n \"initialBuyQuoteAmount\": 123,\n \"partner\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://public-api-v2.bags.fm/api/v1/token-launch/damm-v2/create-transaction")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"ipfs\": \"<string>\",\n \"tokenMint\": \"<string>\",\n \"wallet\": \"<string>\",\n \"quoteMint\": \"<string>\",\n \"feeClaimerWallet\": \"<string>\",\n \"initialBuyQuoteAmount\": 123,\n \"partner\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"response": {
"transactions": [
{
"type": "LUT_SETUP",
"transaction": "<string>"
}
],
"launch": {
"tokenMint": "<string>",
"quoteMint": "<string>",
"quoteTokenProgram": "<string>",
"pool": "<string>",
"treasuryPositionNftMint": "<string>",
"feeClaimerPositionNftMint": "<string>",
"feeClaimerWallet": "<string>",
"lookupTable": "<string>",
"positionCustody": "<string>",
"custodyAuthority": "<string>",
"launchPriceQuotePerToken": 123,
"impliedLaunchFdvUsd": 123
}
}
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}Token Launch
Create DAMM v2 Custody Launch Transactions
Builds the partially-signed transaction bundle that launches a token previously registered via POST /token-launch/create-token-info straight into a single-sided DAMM v2 customizable pool with position custody (no DBC bonding curve, no migration). No Fee Share config is used; for direct DAMM Fee Share launches, use /token-launch/damm-v2/create-transaction/v2. The token’s launch status must still be PRE_LAUNCH. Every transaction in the bundle must be co-signed by wallet before submission; see the bundle item type for submission order (LUT_SETUP and CREATE_TOKEN first, then LAUNCH, then optionally LUT_DEACTIVATE/LUT_CLOSE).
POST
/
token-launch
/
damm-v2
/
create-transaction
Create DAMM v2 custody launch transactions
curl --request POST \
--url https://public-api-v2.bags.fm/api/v1/token-launch/damm-v2/create-transaction \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"ipfs": "<string>",
"tokenMint": "<string>",
"wallet": "<string>",
"quoteMint": "<string>",
"feeClaimerWallet": "<string>",
"initialBuyQuoteAmount": 123,
"partner": "<string>"
}
'import requests
url = "https://public-api-v2.bags.fm/api/v1/token-launch/damm-v2/create-transaction"
payload = {
"ipfs": "<string>",
"tokenMint": "<string>",
"wallet": "<string>",
"quoteMint": "<string>",
"feeClaimerWallet": "<string>",
"initialBuyQuoteAmount": 123,
"partner": "<string>"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
ipfs: '<string>',
tokenMint: '<string>',
wallet: '<string>',
quoteMint: '<string>',
feeClaimerWallet: '<string>',
initialBuyQuoteAmount: 123,
partner: '<string>'
})
};
fetch('https://public-api-v2.bags.fm/api/v1/token-launch/damm-v2/create-transaction', 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://public-api-v2.bags.fm/api/v1/token-launch/damm-v2/create-transaction",
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([
'ipfs' => '<string>',
'tokenMint' => '<string>',
'wallet' => '<string>',
'quoteMint' => '<string>',
'feeClaimerWallet' => '<string>',
'initialBuyQuoteAmount' => 123,
'partner' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$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://public-api-v2.bags.fm/api/v1/token-launch/damm-v2/create-transaction"
payload := strings.NewReader("{\n \"ipfs\": \"<string>\",\n \"tokenMint\": \"<string>\",\n \"wallet\": \"<string>\",\n \"quoteMint\": \"<string>\",\n \"feeClaimerWallet\": \"<string>\",\n \"initialBuyQuoteAmount\": 123,\n \"partner\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<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://public-api-v2.bags.fm/api/v1/token-launch/damm-v2/create-transaction")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"ipfs\": \"<string>\",\n \"tokenMint\": \"<string>\",\n \"wallet\": \"<string>\",\n \"quoteMint\": \"<string>\",\n \"feeClaimerWallet\": \"<string>\",\n \"initialBuyQuoteAmount\": 123,\n \"partner\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://public-api-v2.bags.fm/api/v1/token-launch/damm-v2/create-transaction")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"ipfs\": \"<string>\",\n \"tokenMint\": \"<string>\",\n \"wallet\": \"<string>\",\n \"quoteMint\": \"<string>\",\n \"feeClaimerWallet\": \"<string>\",\n \"initialBuyQuoteAmount\": 123,\n \"partner\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"response": {
"transactions": [
{
"type": "LUT_SETUP",
"transaction": "<string>"
}
],
"launch": {
"tokenMint": "<string>",
"quoteMint": "<string>",
"quoteTokenProgram": "<string>",
"pool": "<string>",
"treasuryPositionNftMint": "<string>",
"feeClaimerPositionNftMint": "<string>",
"feeClaimerWallet": "<string>",
"lookupTable": "<string>",
"positionCustody": "<string>",
"custodyAuthority": "<string>",
"launchPriceQuotePerToken": 123,
"impliedLaunchFdvUsd": 123
}
}
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}This endpoint uses position custody. For direct DAMM launches with Fee Share recipients, use Create Custom Quote DAMM v2 Launch Plan.
Submission order
The response bundle can contain up to five transactions. Submit them in this order:LUT_SETUPandCREATE_TOKEN— independent; submit both (in parallel is fine) and wait for both to confirm.LUT_SETUPcreates the address lookup tableLAUNCHdepends on; a lookup table is only usable starting the slot after it is extended, so confirming this before submittingLAUNCHis required.CREATE_TOKENis omitted from the bundle on rebuilds where the mint already landed on-chain.LAUNCH— atomic: initializes the pool, deposits both locked positions, and executes the optional initial buy. Trading is live the moment this lands. If the first submission races the lookup-table warmup, retry once the table has warmed up.LUT_DEACTIVATE— deactivates the lookup table. Submit only afterLAUNCHconfirms. Carries no server signature — replacerecentBlockhashwith a fresh one right before signing.LUT_CLOSE(optional) — reclaims the lookup table rent. Only valid for a window starting shortly afterLUT_DEACTIVATE. Carries no server signature — replacerecentBlockhashwith a fresh one right before signing.
wallet. If submission is uncertain, reconcile the original signatures and on-chain state before requesting a replacement. Setup or token creation may already have confirmed even if LAUNCH has not; do not assume expiry means nothing landed.Authorizations
Body
application/json