POST
/
solana
/
pumpfun
/
mint
curl --request POST \
  --url https://api-dex.chainstream.io/solana/pumpfun/mint \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "dex": "raydium",
  "userAddress": "HN7cABqLq46Es1jh92dQQisAq662SmxELLLsHHe4YWrH",
  "priorityFee": "0.000001",
  "twitter": "@mytoken",
  "telegram": "https://t.me/mytoken",
  "website": "https://mytoken.com",
  "name": "My Token",
  "symbol": "MTK",
  "migrationDex": "RAYDIUM",
  "icon": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA...",
  "mintAddress": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA",
  "description": "A revolutionary new token on Solana"
}'
{
  "serializedTx": "AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEDRgYGpQEDAQIABQcICQoLDA0ODwAAAAAAAAAAAAAQERITFBUWFxgZGhscHR4fAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=",
  "extra": {
    "tokenId": "pump_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
Required parameters for minting token
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
Example:

"RAYDIUM"

icon
string
required

Base64 encoded token icon image

Example:

"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA..."

mintAddress
string
required

Token mint address requiring signature

Required string length: 32 - 44
Example:

"TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"

description
string
required

Token description

Maximum length: 1000
Example:

"A revolutionary new token on Solana"

priorityFee
string

Priority fee in SOL to increase transaction processing speed

Example:

"0.000001"

twitter
string

Twitter profile URL or handle

Example:

"@mytoken"

telegram
string

Telegram group or channel link

Example:

"https://t.me/mytoken"

website
string

Project website URL

Example:

"https://mytoken.com"

Response

200 - application/json
serializedTx
string
required

Base64 encoded transaction

Example:

"AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEDRgYGpQEDAQIABQcICQoLDA0ODwAAAAAAAAAAAAAQERITFBUWFxgZGhscHR4fAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="

extra
object

Additional metadata about the created token

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