Documentation Index
Fetch the complete documentation index at: https://docs.spark.money/llms.txt
Use this file to discover all available pages before exploring further.
Gets all token balances for tokens issued by this IssuerSparkWallet. Supports issuers with multiple tokens.
Method Signature
async getIssuerTokenBalances(): Promise<{
tokenIdentifier: Bech32mTokenIdentifier | undefined;
balance: bigint;
}[]>
Returns
Array of objects containing token identifier and balance for each token issued by this wallet.Show Balance object properties
tokenIdentifier
Bech32mTokenIdentifier | undefined
Bech32m token identifier (e.g., btkn1...), or undefined if no token exists
Token balance held by the issuer
Example
const balances = await issuerWallet.getIssuerTokenBalances();
for (const { tokenIdentifier, balance } of balances) {
if (tokenIdentifier) {
console.log(`Token ${tokenIdentifier}: ${balance}`);
}
}