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

Method Signature

interface IssuerTokenMetadata {
  tokenPublicKey: string;            // Issuer's public key (same as identity public key)
  rawTokenIdentifier: Uint8Array;    // Binary token identifier
  tokenName: string;
  tokenTicker: string;               // Token ticker symbol (e.g., "USDT")
  decimals: number;                  // Number of decimal places
  maxSupply: bigint;
  isFreezable: boolean;
  extraMetadata?: Uint8Array;        // Arbitrary bytes set during token creation
  bech32mTokenIdentifier: string;    // Bech32m encoded token identifier
}

async getIssuerTokensMetadata(): Promise<IssuerTokenMetadata[]>

Returns

metadata
IssuerTokenMetadata[]
required
Array of metadata objects for each token issued by this wallet

Example

const tokensMetadata = await issuerWallet.getIssuerTokensMetadata();

for (const metadata of tokensMetadata) {
  console.log("Token name:", metadata.tokenName);
  console.log("Token ticker:", metadata.tokenTicker);
  console.log("Token ID:", metadata.bech32mTokenIdentifier);
  console.log("Decimals:", metadata.decimals);
  console.log("Max supply:", metadata.maxSupply);
  console.log("---");
}