POST
/
v1
/
solana
/
moonshot
/
create
Moonshot - 创建代币
curl --request POST \
  --url https://api-dex.chainstream.io/v1/solana/moonshot/create \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "dex": "moonshot",
  "userAddress": "oQPnhXAbLbMuKHESaGrbXT17CyvWCpLyERSJA9HCYd7",
  "priorityFee": "1000",
  "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 标识符

Available options:
moonshot
Example:

"moonshot"

userAddress
string
required

发起交易的钱包公钥

Required string length: 8 - 64
Example:

"oQPnhXAbLbMuKHESaGrbXT17CyvWCpLyERSJA9HCYd7"

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,
UNISWAP
Example:

"RAYDIUM"

icon
string
required

代币图标 URL (Base64 或 HTTPS)

Example:

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

description
string
required

代币描述

Maximum length: 1000
Example:

"A revolutionary new token for the Solana ecosystem"

社交媒体和网站链接

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

代币总供应量(基本单位)

Example:

"1000000000"

priorityFee
string

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

Example:

"1000"

banner
string

横幅图片 URL (如未提供则使用图标)

Example:

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

Response

200 - application/json
serializedTx
string
required

用于Moonshot代币创建的Base64编码交易

Example:

"AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEDRgYGpQEDAQIABQcICQoLDA0ODwAAAAAAAAAAAAAQERITFBUWFxgZGhscHR4fAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="

extra
object
required

关于创建的Moonshot代币的额外元数据

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