使用 Moonshot 协议在 Solana 上创建新代币
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": "1000",
"clientType": "default",
"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
}
}
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Token creation parameters
The body is of type object
.
The response is of type object
.
此页面对您有帮助吗?
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": "1000",
"clientType": "default",
"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
}
}
}