Get wallet balance
Returns the wallet balance broken down by category: spendable sats available for immediate use, sats pending in an Ark round, sats locked in outgoing or incoming Lightning payments, sats awaiting board confirmation, and sats in a pending exit. The balance is computed from local state, which the background daemon keeps reasonably fresh (Lightning syncs every second, mailbox and boards every 30 seconds). For the most up-to-date figures, call sync before this endpoint.
Authorizations
Base64url-encoded auth token
Response
Returns the wallet balance
The different balances of a Bark wallet.
spendable_sat counts the spendable VTXOs, needs_refresh_sat the ones
that have to be refreshed before they can be sent again, and every other
field what an operation in progress holds, so the fields never overlap.
See [BalanceSummary] for the totals to show a user.
All amounts are in sats.
Sats in HTLC VTXOs of an incoming Lightning payment whose preimage has been revealed but which have not been swapped for spendable VTXOs yet. A payment that can still be cancelled is not counted.
x >= 0Sats in VTXOs that can no longer be sent in an arkoor payment because
they have expired or their exit depth has reached the server's limit.
They can still be offboarded, exited or refreshed, but are not part of
spendable_sat until maintenance has refreshed them.
x >= 0Sats locked in an outgoing arkoor payment that has not completed yet: the whole input amount, until the send finalizes and the change comes back as spendable.
x >= 0Sats in board transactions that are waiting for sufficient on-chain confirmations before becoming spendable.
x >= 0Sats held in VTXOs whose unilateral exit has committed on-chain but which
haven't yet been drained to the onchain wallet: their state is
[crate::primitives::VtxoStateInfo::Exited] and their exit has not reached
[crate::exit::ExitStateKind::Claimed].
x >= 0Sats locked in VTXOs forfeited for a round that has not yet completed.
x >= 0Sats locked in an outgoing Lightning payment that has not yet settled.
x >= 0Sats locked in an offboard whose transaction has not been broadcast yet, including any change that comes back. Once the transaction is on the network the sats belong to the on-chain wallet.
x >= 0Sats that are immediately spendable, either in-round or out-of-round.
x >= 0