Skip to main content
GET
Get wallet balance

Authorizations

Authorization
string
header
required

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.

claimable_lightning_receive_sat
integer<int64>
required

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.

Required range: x >= 0
needs_refresh_sat
integer<int64>
required

Sats 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.

Required range: x >= 0
pending_arkoor_send_sat
integer<int64>
required

Sats 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.

Required range: x >= 0
pending_board_sat
integer<int64>
required

Sats in board transactions that are waiting for sufficient on-chain confirmations before becoming spendable.

Required range: x >= 0
pending_exit_sat
integer<int64>
required

Sats 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].

Required range: x >= 0
pending_in_round_sat
integer<int64>
required

Sats locked in VTXOs forfeited for a round that has not yet completed.

Required range: x >= 0
pending_lightning_send_sat
integer<int64>
required

Sats locked in an outgoing Lightning payment that has not yet settled.

Required range: x >= 0
pending_offboard_sat
integer<int64>
required

Sats 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.

Required range: x >= 0
spendable_sat
integer<int64>
required

Sats that are immediately spendable, either in-round or out-of-round.

Required range: x >= 0