Solana Token Deployment API
FirekeeperThe Solana Token Deployment endpoint enables you to create new fungible tokens on Solana with a single API call. It supports both the standard SPL Token program and the newer Token-2022 program with advanced features.
Endpoint: POST /v1/solana/deploy
Base URL: https://api.thirdweb.com
This endpoint requires server-side authentication using your secret key. Never expose your secret key in client-side code.
x-secret-key: YOUR_SECRET_KEY
| Parameter | Type | Required | Description |
|---|---|---|---|
from | string | ✅ | Solana wallet address that pays for deployment |
chainId | string | ✅ | Network identifier: solana:mainnet or solana:devnet |
name | string | ✅ | Token name (1-32 characters) |
symbol | string | ✅ | Token symbol (1-10 characters) |
decimals | number | ❌ | Decimal places (0-9, default: 9) |
initialSupply | string | ❌ | Amount to mint in base units |
mintAuthority | string | ❌ | Address allowed to mint (defaults to from) |
freezeAuthority | string | ❌ | Address allowed to freeze accounts |
tokenProgram | string | ❌ | spl-token (default) or token-2022 |
| Field | Description |
|---|---|
transactionId | The Solana transaction signature |
mintAddress | The address of your new token mint |
Mint 1,000,000 tokens at deployment (with 9 decimals):
Note: initialSupply is in base units. For 9 decimals, multiply your desired amount by 10^9.The standard Solana token program. Recommended for most use cases.
- ✅ Widely supported by wallets and DEXs
- ✅ Lower transaction fees
- ✅ Maximum compatibility
The newer Token Extensions program with advanced features.
- ✅ Transfer fees
- ✅ Interest-bearing tokens
- ✅ Confidential transfers
- ✅ Non-transferable tokens
- ⚠️ Not all wallets/DEXs support Token-2022 yet
| Use Case | Recommended Decimals |
|---|---|
| SOL-like tokens | 9 |
| Stablecoins (USDC-like) | 6 |
| NFT-adjacent tokens | 0 |
| High-precision DeFi | 9 |
| Status | Description |
|---|---|
400 | Invalid request parameters |
401 | Missing or invalid authentication |
500 | Server error during deployment |
504 | Transaction confirmation timeout |
- Test on Devnet first — Always deploy to
solana:devnetbefore mainnet - Secure your secret key — Use environment variables, never commit to code
- Verify the mint address — Check the returned
mintAddresson a Solana explorer - Plan your authorities — Consider who should control minting and freezing
- Calculate supply correctly — Remember to account for decimals in
initialSupply
- Thirdweb API Reference — Official thirdweb API reference
- Solana Explorer — View your deployed tokens
- SPL Token Documentation — Official token program docs
- Token-2022 Documentation — Token Extensions guide