POST
/
dex
/
{chain}
/
mint
curl --request POST \
  --url https://api-dex.chainstream.io/dex/{chain}/mint \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "dex": "raydium",
  "userAddress": "HN7cABqLq46Es1jh92dQQisAq662SmxELLLsHHe4YWrH",
  "priorityFee": "0.000001",
  "name": "Candy Token",
  "symbol": "CANDY",
  "uri": "https://assets.candyproject.com/token/icon.png",
  "mintAddress": "CandYQn9W1KTTN8QBN4mYwFDvJyYvHmKgkYhvJK3K8Jd"
}'
{
  "serializedTx": "AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEDRgYGpQEDAQIABQcICQoLDA0ODwAAAAAAAAAAAAAQERITFBUWFxgZGhscHR4fAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=",
  "elapsedTime": 245
}

Authorizations

Authorization
string
header
required

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

Path Parameters

chain
enum<string>
required

支持网络中列出的区块链名称

Available options:
sol,
base

Body

application/json
Token creation parameters
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:

"Candy Token"

symbol
string
required

代币符号/代号

Required string length: 1 - 10
Example:

"CANDY"

uri
string
required

代币元数据 URI (通常指向图像或 JSON)

Example:

"https://assets.candyproject.com/token/icon.png"

priorityFee
string

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

Example:

"0.000001"

mintAddress
string

需要签名的代币铸造地址

Required string length: 32 - 44
Example:

"CandYQn9W1KTTN8QBN4mYwFDvJyYvHmKgkYhvJK3K8Jd"

Response

200 - application/json
serializedTx
string
required

Base64 编码的交易

Example:

"AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEDRgYGpQEDAQIABQcICQoLDA0ODwAAAAAAAAAAAAAQERITFBUWFxgZGhscHR4fAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="

elapsedTime
number
required

请求处理时间(毫秒)

Example:

245