Skip to main content
Gets all Bech32m token identifiers for tokens issued by this IssuerSparkWallet. Supports issuers with multiple tokens.

Method Signature

async getIssuerTokenIdentifiers(): Promise<Bech32mTokenIdentifier[]>

Returns

identifiers
Bech32mTokenIdentifier[]
required
Array of Bech32m token identifiers (e.g., ["btkn1...", "btkn1..."])

Example

const tokenIdentifiers = await issuerWallet.getIssuerTokenIdentifiers();

console.log("Tokens issued by this wallet:");
for (const tokenId of tokenIdentifiers) {
  console.log("  -", tokenId);
}

// Use in operations
for (const tokenId of tokenIdentifiers) {
  const balance = await issuerWallet.getBalance();
  const tokenBalance = balance.tokenBalances.get(tokenId);
  console.log(`${tokenId}: ${tokenBalance?.balance ?? 0n}`);
}