Skip to content

​What Does Burning Do?

Burning tokens permanently decreases a token account balance and reduces the mint’s total supply by the same amount.

​How to Burn Tokens

Burning tokens uses the Token Program’s Burn or BurnChecked instruction. The examples below use BurnChecked, which requires the caller to provide the mint’s decimals so the instruction can verify the expected token precision before burning. The native mint does not support burning. Use CloseAccount instead. The token account owner or an approved delegate signs the transaction. In the Token Extension Program, a mint permanent delegate can also authorize the burn if the mint has the permanent delegate extension enabled.

​Source Reference

ItemDescriptionToken ProgramToken Extension Program
MintThe mint state stores the total token supply.SourceSource
AccountThe token account state stores the token balance reduced by a burn.SourceSource
BurnA burn instruction that decreases a token account balance and mint supply without requiring the caller to provide the mint’s decimals.SourceSource
BurnCheckedA burn instruction that requires the caller to provide the mint’s decimals and checks that value before decreasing a token account balance and mint supply.SourceSource
process_burnShared processor logic for token burns.SourceSource

​Kit

These examples use @solana/kit.

​Web3.js v3

These examples use the class-based @solana/web3.js v3 API with @solana-program instruction builders.
Instructions

​Rust

Add these dependencies to Cargo.toml (tested with Rust 1.89 and 1.98):
Cargo.toml
Rust

​Python

This example uses solana (solana-py) 0.41 and solders:
Terminal
Python

​Web3.js (legacy)

These examples use legacy @solana/web3.js 1.x with @solana/spl-token.
@solana/web3.js 1.x is no longer actively maintainedIt receives critical fixes only. Use Kit for new code. To migrate existing code, follow the Kit upgrade guide, or the web3.js v3 migration guide to keep the class-based API.To run this code, install 1.x with npm install @solana/web3.js@1. A plain npm install @solana/web3.js installs v3, which this code doesn’t run on.