Skip to main content
Gets the metadata about the token for the IssuerSparkWallet.
As an issuer, to get your token public key, you can call getIssuerTokenMetadata() or getIdentityPublicKey(). For frequent retrieval, use getIdentityPublicKey() since it doesn’t require a network call.

Method Signature

interface IssuerTokenMetadata {
  tokenPublicKey: string;
  tokenName: string;
  tokenSymbol: string;
  tokenDecimals: number;
  maxSupply: bigint;
  isFreezable: boolean;
  bech32mTokenIdentifier: string;
}

async function getIssuerTokenMetadata(): Promise<IssuerTokenMetadata>;

Returns

metadata
IssuerTokenMetadata
required
Object containing complete token metadata

Example

const metadata = await issuerWallet.getIssuerTokenMetadata();
console.log("Token name:", metadata.tokenName);
console.log("Token symbol:", metadata.tokenSymbol);
console.log("Max supply:", metadata.maxSupply);
console.log("Is freezable:", metadata.isFreezable);