Burn Tokens & Close Accounts
Efficiently burn SPL tokens and close associated token accounts with the BurnManager class. This functionality is particularly useful for cleaning up unused accounts and managing token supplies.
burn_instruction = burn(
BurnParams(
program_id=TOKEN_PROGRAM_ID,
account=token_account_pubkey,
mint=mint,
owner=owner,
amount=token_balance
)
)
transaction.add(burn_instruction)Last updated
