SolDevHub

Burn Tokens

Permanently remove tokens from circulation.

Overview

Burning tokens reduces the total supply by permanently destroying them. The tokens are removed from your wallet and cannot be recovered.

Code

const ata = await getAssociatedTokenAddress(
  mint.publicKey,
  publicKey
);

const amount = BigInt(Number(inputAmount) * 10 ** decimals);

const ixBurn = createBurnInstruction(
  ata,            // token account
  mint.publicKey, // mint
  publicKey,      // owner
  amount          // amount to burn
);

1. Select Token Account

Tokens are burned from your associated token account (ATA), not directly from the mint.

2. Calculate Amount

Token amounts must be adjusted using decimals. For example, 1 token with 6 decimals equals 1,000,000 units.

3. Burn Instruction

createBurnInstruction removes tokens from your account and reduces total supply.

4. Ownership Requirement

You must own the tokens being burned. Only the token account owner can burn tokens.

Burning tokens is commonly used to reduce supply, increase scarcity, or remove unwanted tokens from your wallet.
Burning is irreversible. Once tokens are burned, they cannot be recovered.