The burnTokens function permanently removes tokens from circulation, reducing total supply. Burned tokens are sent to an inaccessible dead address, making them unrecoverable

Things to know

  • Burning is irreversible. Tokens cannot be recovered
  • You can only burn tokens from your own wallet
  • Amount must be specified in base units (i.e. includes token decimals)

Burning tokens

To burn tokens, simply call the burnTokens method with the amount you want to destroy.
const transactionId = await wallet.burnTokens(
  100000n // amountToBurn
);

console.log("Spark Transaction ID:", transactionId);
Once confirmed, the specified tokens are removed from your balance and can no longer be used.