Skip to main content
Unfreezes issuer’s tokens for a specific wallet via the IssuerSparkWallet.

Method Signature

async function unfreezeTokens(sparkAddress: string): Promise<{
  impactedOutputIds: string[];
  impactedTokenAmount: bigint;
}>;

Parameters

sparkAddress
string
required
The Spark Address to unfreeze

Returns

impactedOutputIds
string[]
required
Array of output IDs that were unfrozen
impactedTokenAmount
bigint
required
Total amount of tokens unfrozen

Example

const result = await issuerWallet.unfreezeTokens("spark:address-to-unfreeze");
console.log("Unfrozen outputs:", result.impactedOutputIds);
console.log("Unfrozen amount:", result.impactedTokenAmount);