POST
/
v1
/
solana
/
moonshot
/
create
Moonshot - Create Token
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 identifier for the trade

Available options:
moonshot
Example:

"moonshot"

userAddress
string
required

Public key of the wallet initiating the transaction

Required string length: 8 - 64
Example:

"oQPnhXAbLbMuKHESaGrbXT17CyvWCpLyERSJA9HCYd7"

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

"RAYDIUM"

icon
string
required

Token icon URL (Base64 or HTTPS)

Example:

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

description
string
required

Token description

Maximum length: 1000
Example:

"A revolutionary new token for the Solana ecosystem"

Social and website links

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

Total token supply amount (in base units)

Example:

"1000000000"

priorityFee
string

Priority fee in SOL to increase transaction processing speed

Example:

"1000"

banner
string

Banner image URL (defaults to icon if not provided)

Example:

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

Response

200 - application/json
serializedTx
string
required

Base64 encoded transaction for Moonshot token creation

Example:

"AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEDRgYGpQEDAQIABQcICQoLDA0ODwAAAAAAAAAAAAAQERITFBUWFxgZGhscHR4fAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="

extra
object
required

Additional metadata about the created Moonshot token

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