v1

latestOpenAPI 3.1.02026-07-13570316.1 KB
Solana

Deploy Solana Token

Deploy a new SPL token or Token-2022 token on Solana. Creates a new mint account with the specified parameters and optionally mints initial supply.

Token Programs:

  • spl-token: Standard SPL Token program - widely supported, recommended for most use cases
  • token-2022: Token Extensions program - supports advanced features like transfer fees, interest-bearing tokens, etc.

Authentication: This endpoint requires backend authentication using the x-secret-key header. The secret key should never be exposed publicly.

post/v1/solana/deploy

Request body

fromstring required

Solana wallet address that will pay for the deployment and serve as the mint authority.

chainIdstring required

Solana network for deployment. Use solana:mainnet or solana:devnet.

namestring required

Token name (max 32 characters). Stored in on-chain metadata.

symbolstring required

Token symbol (max 10 characters). Stored in on-chain metadata.

decimalsinteger

Number of decimal places for the token. Standard is 9 for SOL-like tokens, 6 for USDC-like.

initialSupplystring

Initial token supply to mint, expressed in the smallest unit (base units). For example, for a token with 9 decimals, '1000000000' would be 1 token.

mintAuthoritystring

Address authorized to mint new tokens. Defaults to the 'from' address if not specified.

freezeAuthoritystring

Address authorized to freeze token accounts. Omit to disable freeze functionality.

tokenProgram'spl-token' | 'token-2022'

Token program to use for deployment. Use 'spl-token' for standard SPL tokens or 'token-2022' for Token Extensions program.

Example request

{
  "from": "8JBLmveV4YF5AQ7EVnKJgyj6etGgVkPp3tYqQMTu3p5B",
  "chainId": "solana:devnet",
  "name": "My Token",
  "symbol": "MTK",
  "decimals": 9,
  "initialSupply": "1000000000000"
}

Response

Token deployed successfully. Returns the transaction signature and mint address.

Example response

{
  "result": {
    "transactionId": "solana-tx-queue-id",
    "mintAddress": "7GCihgDB8fe6KNjn2MYtkzZcRjQy3t9GHdC8uHYmW2hr"
  }
}