
POST
Remove unwanted tokens from one or multiple wallets by sending them to a burn address. In /utilities/burnALL mode, the token account is also closed and its rent SOL (~0.002 SOL) is returned to the wallet owner.
Quick Start
Parameters
| Parameter | Type | Description |
|---|---|---|
privateKeys | string[] | Private keys of the wallets to process. Min 1, max 50 |
mints | string[] | Token mint addresses to burn. Min 1, max 20 |
amount | object | Amount configuration. See Amount Modes below |
amount
| Property | Type | Description |
|---|---|---|
mode | string | ALL or AMOUNT |
value | number | Number of tokens to burn in human-readable units (e.g., 100 for 100 USDC). Required when mode is AMOUNT |
Amount Modes
- ALL
- AMOUNT
- Multiple Tokens
Burn the entire balance and close the token account to recover rent SOL.Flow: burn all tokens → balance reaches zero → account closed → ~0.002 SOL rent returned to wallet.
Use Cases
| Scenario | Approach |
|---|---|
| Remove airdropped spam tokens | Use ALL mode to burn and close the accounts in one step |
| Reduce circulating supply | Use AMOUNT mode to burn a specific quantity |
| Clean up after selling | Use ALL mode with the sold token’s mint to recover rent |
| Partial burn across wallets | Use AMOUNT mode with multiple privateKeys |
Response
- Burn All (200)
- Burn Amount (200)
Partial Success
Some burns may fail individually while others succeed. The response still returns"success": true with per-wallet details. Failed burns have status: "FAILED", an error field with the reason, and an errorCode field with the error code.
When failures occur, a warnings array is included at the root of the response:
"success": false with both an error object and the data object containing per-wallet details.
Each burn is independent. There is no atomic guarantee — check the
status field for each entry.Errors
| Code | Message | Cause |
|---|---|---|
INVALID_WALLET | Invalid private key | One of the private keys is invalid |
INVALID_MINT | Invalid mint address | One of the mint addresses is invalid |
NO_WALLETS | No wallets provided | No private keys provided |
NO_MINTS | No mints provided | No mint addresses provided |
TOO_MANY_WALLETS | Maximum 50 wallets per request | More than 50 wallets submitted |
TOO_MANY_MINTS | Maximum 20 mints per request | More than 20 mints submitted |
NO_BALANCE | No balance for token | Wallet does not hold the specified token |
INSUFFICIENT_BALANCE | Insufficient balance | Not enough tokens for the requested AMOUNT |
INVALID_AMOUNT | Invalid amount | Amount value is missing or invalid |
RATE_LIMIT | Rate limit exceeded | Too many requests — see Rate Limits |
INTERNAL_ERROR | Internal server error | Retry or contact support |
Notes
- Maximum 50 wallets and 20 mints per request
- In
ALLmode, the token account is closed and rent SOL is recovered automatically - Each wallet pays its own Solana transaction fee
- Per-burn fields
amountBurned,amountBurnedFormatted,accountClosed, andrentRecoveredare only present on successful burns — they are omitted on failed entries
What’s Next?
Close Accounts
Close empty token accounts and reclaim rent SOL
Token Info
List token accounts and check balances
Sell Tokens
Sell tokens before burning their accounts
Withdraw SOL
Consolidate SOL after cleanup