Skip to main content
Deprecated: Use getIssuerTokenIdentifiers() instead for multi-token support.
Gets the Bech32m token identifier for the issuer’s token via the IssuerSparkWallet. Throws an error if the issuer has multiple tokens.

Method Signature

async getIssuerTokenIdentifier(): Promise<Bech32mTokenIdentifier>

Returns

identifier
Bech32mTokenIdentifier
required
Bech32m token identifier (eg: btkn1…)

Example

const tokenIdentifier = await issuerWallet.getIssuerTokenIdentifier();
console.log("Token identifier:", tokenIdentifier);

// Use in transfer operations
const txId = await issuerWallet.transferTokens({
  tokenIdentifier,
  tokenAmount: 1000n,
  receiverSparkAddress: "spark1..."
});