current location:Home >> Blockchain knowledge >> How do I burn my Solana token?

How do I burn my Solana token?

admin Blockchain knowledge 132

Burning a Solana token means permanently removing it from circulation, reducing the total supply. This is done by sending the tokens to a "burn address" (also called a "token melt address"), which is a wallet that no one can access.

How do I burn my Solana token?


Here’s a breakdown of how to do it, from the easiest method to the more advanced.


Method 1: Using a User-Friendly Dashboard (Easiest for most users)

The simplest way is to use a platform that has a built-in "Burn" function. The most popular and trusted option is Sol Incinerator.

Steps using Sol Incinerator:

  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. Select the Token: On the main page, you will see a list of tokens you hold. Find the token you want to burn.

  4. Enter the Amount: Type in the amount you wish to burn.

  5. Review and Confirm: The site will show you the transaction details. Confirm the transaction in your wallet. You will need a small amount of SOL to pay for the transaction fee.

  6. Done! The tokens are permanently burned. You can check your wallet balance or a Solana explorer like Solscan to confirm.

Pros: Very easy, no technical knowledge required.
Cons: Relies on a third-party website (always ensure you are on the correct URL).


Method 2: Using a Command-Line Interface (CLI) with spl-token (Advanced)

This is the "official" way and gives you full control. You need the Solana Command Line Tools installed.

Prerequisites:

  • Solana CLI tools installed (solana and spl-token).

  • Your wallet's keypair file (e.g., wallet.json).

  • The Token Mint Address (the unique identifier for your token).

  • Enough SOL in your wallet for transaction fees.

Steps:

  1. Check Your Token Accounts: First, find the specific token account holding the tokens you want to burn.

    bash
    spl-token accounts --owner KEYPAIR.json

    This will list all your token accounts. Note the Token Account Address for the specific mint.

  2. Burn the Tokens: Use the burn command.

    bash
    spl-token burn TOKEN_ACCOUNT_ADDRESS AMOUNT

    Example:

    bash
    spl-token burn 7ABC...xyz 1000

    This command burns 1000 tokens from the specified account.

    • Replace TOKEN_ACCOUNT_ADDRESS with the address from step 1.

    • Replace AMOUNT with the number of tokens to burn (e.g., 100).

  3. Close the Account (Optional but Recommended): If you burn all the tokens in an account, you can "close" it to get back the small amount of SOL (about 0.002 SOL) that was used to rent the account's data space.

    bash
    spl-token close TOKEN_ACCOUNT_ADDRESS

Pros: Maximum control, no third-party UI.
Cons: Requires technical setup and comfort with the command line.


Method 3: Programmatically (For Developers)

If you are building an application, you can burn tokens directly within your code using the @solana/spl-token library.

Example using JavaScript/TypeScript:

javascript
import { getAssociatedTokenAddress, createBurnInstruction } from '@solana/spl-token';import { Connection, clusterApiUrl, PublicKey, Transaction } from '@solana/web3.js';// Setup connection and keysconst connection = new Connection(clusterApiUrl('mainnet-beta'));const mintAddress = new PublicKey('YOUR_TOKEN_MINT_ADDRESS');const owner = new PublicKey('YOUR_WALLET_PUBLIC_KEY'); // The wallet that owns the tokensasync function burnTokens() {
    // 1. Get the Associated Token Account
    const tokenAccount = await getAssociatedTokenAddress(mintAddress, owner);

    // 2. Create the Burn Instruction
    const burnInstruction = createBurnInstruction(
        tokenAccount,         // Token Account to burn from
        mintAddress,          // Token Mint
        owner,                // Owner of the Token Account
        1000000              // Amount to burn (in atomic units, e.g., if decimals=6, this is 1 token)
    );

    // 3. Create and Send the Transaction
    const transaction = new Transaction().add(burnInstruction);
    // ... (Sign and send the transaction using your wallet provider, e.g., Phantom)}burnTokens();

Important Considerations Before You Burn

  1. Irreversibility: Burning is permanent. Once you burn tokens, they are gone forever and cannot be recovered.

  2. Verify the Token: Double and triple-check the Token Mint Address before burning. Burning the wrong token is a common and costly mistake.

  3. Transaction Fees: You will need a small amount of SOL (usually less than $0.01) to pay for the network fee.

  4. Supply Verification: After burning, you can verify the reduced supply by looking up the token's mint address on Solscan. The "Total Supply" field will be updated.

What is the Burn Address?

On Solana, the burn address for SPL tokens is not a single public key like in Ethereum. Instead, it's a system where the tokens are sent to the mint account with a specific instruction that reduces the "supply" field. Conceptually, it's the same as sending them to an unreachable wallet.


For most users, Method 1 (Sol Incinerator) is the recommended path due to its simplicity and safety.

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