SparkWallet, including Bitcoin balance and token balances.
Method Signature
Returns
The wallet’s current balance in satoshis as a
bigint. Use Number(balance) for display or arithmetic with regular numbers.Map of Bech32m token identifiers to token balance and metadata objects. Each token balance contains:
ownedBalance: Total tokens owned (including those pending in outbound transfers)availableToSendBalance: Tokens available to send (excludes pending outbound transfers)tokenMetadata: Token metadata including name, ticker, decimals, etc.
The
ownedBalance represents all tokens you own, while availableToSendBalance excludes tokens that are locked in pending outbound transfers. Use availableToSendBalance to determine how many tokens can be sent.