
SolDevHub
SolDevHubPermanently remove tokens from circulation.
Burning tokens reduces the total supply by permanently destroying them. The tokens are removed from your wallet and cannot be recovered.
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 );
Tokens are burned from your associated token account (ATA), not directly from the mint.
Token amounts must be adjusted using decimals. For example, 1 token with 6 decimals equals 1,000,000 units.
createBurnInstruction removes tokens from your account and reduces total supply.
You must own the tokens being burned. Only the token account owner can burn tokens.