current location:Home >> Blockchain knowledge >> how to burn solana tokens

how to burn solana tokens

admin Blockchain knowledge 669

Burn Solana tokens is the process of permanently removing them from circulation, making them unusable and inaccessible forever.

how to burn solana tokens

It's a common action for:

  • Reducing total supply (deflationary mechanism).

  • Removing unsold tokens from a mint.

  • "Revoking" tokens from a user (e.g., for a credential or access key).

  • Correcting errors.

Here is a comprehensive guide on how to burn Solana tokens, from the simplest method to the developer approach.


Method 1: The Easiest Way - Using a User-Friendly Web App (Sol Incinerator)

For most users, especially those not comfortable with the command line, this is the best method.

Tool: GTokenTool

Steps:

  1. Go to the Website: Navigate to https://sol.gtokentool.com.

  2. Connect Your Wallet: Click "Connect Wallet" and use a supported wallet like Phantom, Solflare, or Backpack.

  3. Enter the Token Mint Address:

    • This is the unique identifier of the token you want to burn.

    • How to find it: You can usually find it on explorers like Solscan by looking up your token holding or the token's website. It will be a long string of letters and numbers (e.g., EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v is USDC).

    • ⚠️ Caution: Double-check this address. Burning the wrong token is irreversible.

  4. Enter the Amount: Type in the number of tokens you wish to burn.

  5. Review and Burn: The app will show you a confirmation screen. Review the details and click "Burn Tokens."

  6. Approve the Transaction: Your wallet will pop up asking you to approve the transaction and pay a small fee (a fraction of a cent in SOL) for the network cost.

  7. Confirmation: Once the transaction is confirmed, the tokens are permanently gone. You can view the transaction signature on a block explorer.

Method 2: For Developers & Advanced Users - Using the Command Line (spl-token CLI)

This method gives you more control and is essential for automation or integration into scripts.

Prerequisites:

  • Node.js installed on your computer.

  • Solana CLI Tools installed.

  • spl-token CLI installed (often comes with Solana CLI tools).

  • A wallet with some SOL for transaction fees and the tokens you want to burn.

Steps:

  1. Open your terminal (Command Prompt, PowerShell, or Terminal).

  2. Check Your Token Accounts: First, see what tokens you hold and their associated token account addresses.

spl-token accounts
  1. This will output a list showing the Token Mint, the associated Token Account address, and the balance.

  2. Execute the Burn Command: Use the burn command. You need to specify the Token Account (not just the Mint Address) and the amount.

spl-token burn <TOKEN_ACCOUNT_ADDRESS> <AMOUNT>

Example:


spl-token burn 7X2oP... 100
  1. This command burns 100 tokens from the token account 7X2oP....

  2. Confirm the Burn: The CLI will return a transaction signature. You can paste this into Solscan to verify the burn transaction.

What's the difference between Mint Address and Token Account Address?

  • Mint Address: The unique ID of the token type (e.g., the "USDC" contract).

  • Token Account Address: The unique ID of your personal wallet that holds a specific token type. Each wallet has a separate Token Account for each SPL token it holds.


Method 3: Programmatically (Using JavaScript/TypeScript with @solana/web3.js)

This is for developers building dApps or custom tools.

Prerequisites:

  • A Node.js project with @solana/web3.js and @solana/spl-token installed.

  • A wallet's keypair.

  • Connection to a Solana RPC node.

Example Code Snippet:

import { Connection, Keypair, PublicKey } from '@solana/web3.js';
import { burnChecked, getOrCreateAssociatedTokenAccount } from '@solana/spl-token';

// Set up your connection and wallet
const connection = new Connection('https://api.mainnet-beta.solana.com'); // Use your RPC URL
const payer = Keypair.fromSecretKey(...); // Your wallet's secret key

// Define the Mint Address of the token to burn
const mintAddress = new PublicKey('EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v'); // USDC example

// Amount to burn (in token's native decimals, e.g., for 1 USDC with 6 decimals, it's 1_000_000)
const amount = 100_000_000; // This is 100 tokens if it has 6 decimals

(async () => {
  try {
    // 1. Get the Associated Token Account for the payer and the mint
    const tokenAccount = await getOrCreateAssociatedTokenAccount(
      connection,
      payer,
      mintAddress,
      payer.publicKey
    );

    // 2. Get the mint's decimals
    const mintInfo = await getMint(connection, mintAddress);
    const decimals = mintInfo.decimals;

    // 3. Perform the burn transaction
    const transactionSignature = await burnChecked(
      connection,
      payer, // Payer & owner of the tokens
      tokenAccount.address, // Token Account to burn from
      mintAddress, // The token Mint
      payer, // Owner's keypair again
      amount, // Raw amount (not accounting for decimals)
      decimals // Decimals of the token
    );

    console.log(`Burn successful! Transaction Signature: https://solscan.io/tx/${transactionSignature}`);
  } catch (error) {
    console.error('Burn failed:', error);
  }
})();

Critical Warnings & Best Practices

  1. IRREVERSIBLE ACTION: Burning is permanent. Once you burn tokens, they are gone forever. There is no "undo".

  2. Verify the Token Mint: Always double and triple-check the Mint Address you are burning. Burning the wrong token is a common and costly mistake.

  3. Keep Some SOL: You need a very small amount of SOL in your wallet to pay for the transaction fee. It's negligible (a fraction of a cent) but required.

  4. Check Token Accounts: When using CLI or code, ensure you are burning from the correct Token Account.

  5. Understand the Purpose: Be 100% sure why you are burning tokens. Don't do it just for experimentation unless you are on a devnet with worthless tokens.

Frequently Asked Questions

1. How to Burn Solana Tokens in Phantom

For Phantom wallet users, the process is very straightforward, as described in Method 2. Within the Phantom app, navigate to the "Send" interface, enter the recognized black hole address 1nc1nerator..., select the token you want to burn, and confirm the transaction. The entire process is similar to sending SOL to a friend, but the destination is a one-way black hole.

2. How to Burn Solana Tokens from Coinbase

It's important to clarify that centralized exchanges like Coinbase typically do not offer direct on-chain token burning functionality. If you are a project developer, you would first need to withdraw the tokens from Coinbase to your own non-custodial Solana wallet (like Phantom) and then follow Method 1 or Method 2 mentioned above. If you are a user wanting to "dispose of" tokens on Coinbase, you usually can only do so by selling them for another asset, not through on-chain burning.

3. How to Burn Solana LP Tokens

Burning Liquidity Pool tokens requires accessing the original DEX's (like Raydium or Orca) "Remove Liquidity" interface. After removing liquidity, you will receive the corresponding token pair (e.g., SOL and your SPL token). At this point, what you hold are the pure LP tokens themselves. To burn these LP tokens, you can follow Method 2 by sending them to a black hole address. This typically permanently locks that portion of the liquidity and removes the LP tokens from circulation.

4. Solana Token Burning Tools

Besides manual methods using the CLI and wallets, the community and projects have also created tools to simplify the process. For example, some projects provide official "burn portal" webpages where users just need to connect their wallet and authorize the transaction to complete the burn. Additionally, tools like the "Token Burning App" on Solana Devnet can help developers practice in a testnet environment. Always ensure you are using official or verified tools to prevent scams.

5. How Much Does It Cost to Burn Solana Tokens?

The cost to burn tokens on Solana is extremely low, typically just the network transaction fee. The fee for each burn transaction is far less than 0.01 SOL, often costing just a fraction of a cent in many cases. This is a direct benefit of the Solana network's high throughput and low fees, making frequent, small-scale burns economically feasible.

6. Can You Get a Tax Write-Off for Burning Solana Tokens?

This is a complex tax question, not a technical one. In most jurisdictions (like the US), sending cryptocurrency to an inaccessible black hole address might be considered a taxable event, equivalent to "disposing" of the asset. You may need to report a capital loss or gain. This is not tax advice. We strongly recommend consulting a professional cryptocurrency tax accountant to understand the specific legal requirements in your region.

7. What's the Difference Between Burning Tokens on Solana vs. Ethereum?

The core concept is the same, but there are significant differences in technical implementation and cost.

  • Cost: On Ethereum, especially when the mainnet is congested, the gas fee for burning tokens can be as high as tens or even hundreds of dollars. On Solana, the cost is almost negligible.

  • Method: On Ethereum, projects typically burn tokens by calling the burn function of the token contract. On Solana, besides calling the SPL Token program's Burn instruction (Method 1), sending tokens to a black hole address (Method 2) is also very common.

  • Speed: Burn transactions on Solana are confirmed within seconds, whereas on Ethereum, it might take several minutes.

8. How to Verify a Solana Token Has Been Burned?

Verification is a crucial step for building trust. After the transaction is complete, copy the Transaction ID (signature) and paste it into a blockchain explorer like Solscan.io or Solana.fm. You can check:

  • For Method 1: Check if the token's total supply has decreased accurately.

  • For Method 2: Search for the black hole address 1nc1nerator... and confirm that your tokens now appear in its holdings list. This indicates the tokens have been permanently locked.

Testing on Devnet First

Before you do anything on mainnet with real value, practice on devnet.

  • Get devnet SOL from a faucet.

  • Create or receive some dummy tokens.

  • Use the methods above to burn them. This will build confidence and prevent costly errors.

By following these methods and warnings, you can safely and effectively burn your Solana tokens.

If you have any questions or uncertainties, please join the official Telegram group: https://t.me/GToken_EN

GTokenTool

GTokenTool is the most comprehensive one click coin issuance tool, supporting multiple public chains such as TON, SOL, BSC, etc. Function: Create tokensmarket value managementbatch airdropstoken pre-sales IDO、 Lockpledge mining, etc. Provide a visual interface that allows users to quickly create, deploy, and manage their own cryptocurrencies without writing code.

Similar recommendations