Bitcoin API Balances
On this page we present the detailed information provided by the API and the User Interface for Bitcoin's account balance, as well as illustrating how status changes impact each balance, for inbound and outbound transactions.
Definition
-
available: Equal to total - pending - worthless -
confirmed: Sum of confirmed UTXOs (more than 6 confirmations). As soon as a transaction including a given UTXO is submitted to the Bitcoin network, the UTXO isn't considered a UTXO anymore, as it is spent. -
mempool_change: Amount currently in the account's change outputs for transactions that are still in mempool. Change addresses are derived with dedicated derivation path, please avoid sending your change address as receive address and use the "receive" button instead, otherwise change balance will be overestimated. -
mempool_in: Inbounding amount, for inbound transactions that are still in mempool (0 confirmations). -
mempool_out: Outbounding amount, for outbound transactions that are still in mempool (0 confirmations). -
pending: Equal to the sum of all outbound pending transactions' amounts, change excluded and pending max fees included. An outbound transaction is considered pending as long as its status is between pending approval (included) and submitted (excluded). -
total: Equal to confirmed + mempool in + under confirmation in - mempool out - under confirmation out -
under_confirmation_change: Amount currently in the account's change outputs for transactions that are under confirmation (between 1 and 6 confirmation). Change addresses are derived with dedicated derivation path, please avoid sending your change address as receive address and use the "receive" button instead, otherwise change balance will be overestimated. -
under_confirmation_in: Inbounding amount, for inbound transactions that are under confirmation (1 to 6 confirmations). -
under_confirmation_out: Outbounding amount, for outbound transactions that are under confirmation (1 to 6 confirmations). -
worthless: sum of all UTXOs for which spending is more expensive in fees than their actual amount, due to their incompressibility in vBytes.
User Interface balances computed from API balances:
-
Available balance =
available -
Strictly available balance =
confirmed-pending-worthless+mempool_change+under_confirmation_change -
Worthless and dust =
worthless -
Pending balance =
pending -
Total balance =
total -
Incoming 0 =
mempool_in -
Incoming 1 - 6 =
under_confirmation_in -
Incoming 6+ =
confirmed -
Outbounding 0 =
mempool_out
Impact of outbound transactions statuses on balances:
-
Pending approval: Increasependingby the outbound amount plusmax_feesexcluding change. -
Approved,Signed: No impact on balances. -
Submitted (0/6): Decreasependingby the outbound amount plusmax_feesexcluding change, increasemempool_changeby the change amount andmempool_outby outbound amount, decreaseconfirmedby change plus outbound amount plus final fees. -
Submitted (1+/6): Decreasemempool_changeby the change amount, decreasemempool_outby outbound amount, increaseunder_confirmation_changeby the change amount and increaseunder_confirmation_outby outbound amount. -
Confirmed: Decreaseunder_confirmation_changeby the change amount and decreaseunder_confirmation_outby outbound amount, increaseconfirmedby the change amount. -
Dropped: Increaseconfirmedby change plus outbound amount plus fees. Also decreasemempool_outandmempool_changeor onunder_confirmation_outandunder_confirmation_changedepending if the tx was dropped respectively while on mempool, or after an onchain reorganization. -
Failed_to_broadcast: Decreasependingby the outbound amount plusmax_fees.
Impact of inbound transactions statuses on balances:
-
Submitted (0/6): Increasemempool_inby the incoming amount. -
Submitted (1+/6): Decreasemempool_inby the incoming amount, Increaseunder_confirmation_inby the incoming amount. -
Dropped: Decreasemempool_inorunder_confirmation_inby the incoming amount, depending if the tx was dropped respectively while on mempool, or after an onchain reorganization. -
Confirmed: Decreaseunder_confirmation_inby the incoming amount, Increaseconfirmedby the incoming amount.