getBalance() instead.
Method Signature
Returns
bigint
required
The wallet’s immediately spendable balance in satoshis. Kept for backwards compatibility.
object
required
Breakdown of the sats balance by status (read from cache, no network call):
available: Immediately spendable satoshisowned: All satoshis owned (available + locked in outgoing transfers/swaps)incoming: Pending inbound transfers not yet claimed
TokenBalanceMap
required
Map of Bech32m token identifiers to token balance and metadata objects. Token metadata may require a network call if not yet cached.
getCachedBalance() reads sats data from the event-driven in-memory cache — no network call is made for sats. Use this for instant balance reads (e.g., in a UI). For a guaranteed-fresh balance, call getBalance().