POST
/
solana
/
moonshot
/
mint
curl --request POST \
  --url https://api-dex.chainstream.io/solana/moonshot/mint \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "dex": "raydium",
  "userAddress": "HN7cABqLq46Es1jh92dQQisAq662SmxELLLsHHe4YWrH",
  "priorityFee": "0.000001",
  "name": "My Token",
  "symbol": "MTK",
  "migrationDex": "RAYDIUM",
  "icon": "https://assets.mytoken.com/icon.png",
  "description": "A revolutionary new token for the Solana ecosystem",
  "links": [
    {
      "label": "website",
      "url": "https://mytoken.com"
    },
    {
      "label": "twitter",
      "url": "https://twitter.com/mytoken"
    }
  ],
  "banner": "https://assets.mytoken.com/banner.png",
  "tokenAmount": "1000000000"
}'
{
  "serializedTx": "AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEDRgYGpQEDAQIABQcICQoLDA0ODwAAAAAAAAAAAAAQERITFBUWFxgZGhscHR4fAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=",
  "extra": {
    "tokenId": "token_123456",
    "token": {
      "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA",
      "decimals": 9
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
Token creation parameters
dex
enum<string>
required

DEX identifier for the trade

Available options:
raydium,
meteora,
pumpfun,
moonshot,
jupiter
Example:

"raydium"

userAddress
string
required

Public key of the wallet initiating the transaction

Required string length: 8 - 64
Example:

"HN7cABqLq46Es1jh92dQQisAq662SmxELLLsHHe4YWrH"

name
string
required

Name of the token

Required string length: 1 - 32
Example:

"My Token"

symbol
string
required

Token symbol/ticker

Required string length: 1 - 10
Example:

"MTK"

migrationDex
enum<string>
required

Target DEX for token migration

Available options:
RAYDIUM,
METEORA,
UNISWAP
Example:

"RAYDIUM"

icon
string
required

Token icon URL (Base64 or HTTPS)

Example:

"https://assets.mytoken.com/icon.png"

description
string
required

Token description

Maximum length: 1000
Example:

"A revolutionary new token for the Solana ecosystem"

Social and website links

Example:
[
  {
    "label": "website",
    "url": "https://mytoken.com"
  },
  {
    "label": "twitter",
    "url": "https://twitter.com/mytoken"
  }
]
tokenAmount
string
required

Total token supply amount (in base units)

Example:

"1000000000"

priorityFee
string

Priority fee in SOL to increase transaction processing speed

Example:

"0.000001"

banner
string

Banner image URL (defaults to icon if not provided)

Example:

"https://assets.mytoken.com/banner.png"

Response

200 - application/json
serializedTx
string
required

Base64 encoded transaction

Example:

"AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEDRgYGpQEDAQIABQcICQoLDA0ODwAAAAAAAAAAAAAQERITFBUWFxgZGhscHR4fAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="

extra
object
required

Additional metadata about the created token

Example:
{
  "tokenId": "token_123456",
  "token": {
    "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA",
    "decimals": 9
  }
}