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 标识符

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

"raydium"

userAddress
string
required

发起交易的钱包公钥

Required string length: 8 - 64
Example:

"HN7cABqLq46Es1jh92dQQisAq662SmxELLLsHHe4YWrH"

name
string
required

代币名称

Required string length: 1 - 32
Example:

"My Token"

symbol
string
required

代币符号/代号

Required string length: 1 - 10
Example:

"MTK"

migrationDex
enum<string>
required

代币迁移目标 DEX

Available options:
RAYDIUM,
METEORA
Example:

"RAYDIUM"

icon
string
required

Base64 编码的代币图标图片

Example:

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

mintAddress
string
required

需要签名的代币铸造地址

Required string length: 32 - 44
Example:

"TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"

description
string
required

代币描述

Maximum length: 1000
Example:

"A revolutionary new token on Solana"

priorityFee
string

优先费用,以 SOL 增加交易处理速度

Example:

"0.000001"

twitter
string

Twitter 个人资料 URL 或用户名

Example:

"@mytoken"

telegram
string

Telegram 群组或频道链接

Example:

"https://t.me/mytoken"

website
string

项目网站 URL

Example:

"https://mytoken.com"

Response

200 - application/json
serializedTx
string
required

Base64 编码的交易

Example:

"AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEDRgYGpQEDAQIABQcICQoLDA0ODwAAAAAAAAAAAAAQERITFBUWFxgZGhscHR4fAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="

extra
object

创建代币的额外元数据

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

此页面对您有帮助吗?