SparkWallet, including Bitcoin balance and token balances.
Method Signature
Returns
The wallet’s immediately spendable balance in satoshis. Kept for backwards compatibility.
Breakdown of the sats balance by status:
available: Immediately spendable satoshisowned: All satoshis owned (available + locked in outgoing transfers/swaps)incoming: Pending inbound transfers not yet claimed
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.