Freezing and Unfreezing Tokens

The freeze functionality allows token issuers to freeze and unfreeze tokens at specific addresses, only available for tokens created with isFreezeable: true.

const freezeResult = await wallet.freezeTokens(freezePublicKey);
console.log("Freeze result:", freezeResult);

After freezing, that public key will be unable to transact with your token on Spark or L1. This includes any already held tokens and any tokens received in the future. At any point in time you can unfreeze your token on that public key

const freezeResult = await wallet.freezeTokens(freezePublicKey);
console.log("Freeze result:", freezeResult);

Features and Benefits

  • Instantly applied to the SOs to prevent
  • Also prevents future transactions with your token on L1.
  • Reversible at any time.

Requirements

  • Token must have been created with isFreezeable: true
  • Only the token issuer can freeze/unfreeze addresses
  • Cannot freeze the issuer’s own address

Next Steps

After freezing or unfreezing tokens, you might want to burn tokens or send tokens to Bitcoin L1.