The burnTokens function allows you to permanently remove tokens from circulation, reducing the total supply.

Example

const transactionId = await wallet.burnTokens(
  100000n // amountToBurn
);

console.log("Spark Transaction ID:", transactionId);

Important Considerations

  • Burning is irreversible - burned tokens cannot be recovered
  • You can only burn tokens that you own
  • The amount must be specified in base units (considering token decimals)
  • The operation will fail if you try to burn more tokens than you own

Next Steps

After burning tokens, you may want to send tokens back to Bitcoin L1.