POST
/
token-launch
/
create-launch-transaction
Create token launch transaction
curl --request POST \
  --url https://public-api-v2.bags.fm/api/v1/token-launch/create-launch-transaction \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "ipfs": "<string>",
  "tokenMint": "<string>",
  "wallet": "<string>",
  "initialBuyLamports": 123,
  "configKey": "<string>",
  "tipWallet": "<string>",
  "tipLamports": 123
}'
{
  "success": true,
  "response": "<string>"
}

Authorizations

x-api-key
string
header
required

API key authentication. Provide your API key as the header value.

Body

application/json
ipfs
string
required

IPFS URL of the token metadata

tokenMint
string
required

Public key of the token mint

wallet
string
required

Public key of the wallet

initialBuyLamports
number
required

Initial buy amount in lamports

configKey
string
required

Config key from create-config endpoint

tipWallet
string

Base58 encoded Solana public key of the tip recipient wallet

tipLamports
number

Tip amount in lamports

Response

Successfully created token launch transaction

success
boolean
required
Example:

true

response
string

Base58 encoded serialized transaction