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
: Increasepending
by the outbound amount plusmax_fees
excluding change. -
Approved
,Signed
: No impact on balances. -
Submitted (0/6)
: Decreasepending
by the outbound amount plusmax_fees
excluding change, increasemempool_change
by the change amount andmempool_out
by outbound amount, decreaseconfirmed
by change plus outbound amount plus final fees. -
Submitted (1+/6)
: Decreasemempool_change
by the change amount, decreasemempool_out
by outbound amount, increaseunder_confirmation_change
by the change amount and increaseunder_confirmation_out
by outbound amount. -
Confirmed
: Decreaseunder_confirmation_change
by the change amount and decreaseunder_confirmation_out
by outbound amount, increaseconfirmed
by the change amount. -
Dropped
: Increaseconfirmed
by change plus outbound amount plus fees. Also decreasemempool_out
andmempool_change
or onunder_confirmation_out
andunder_confirmation_change
depending if the tx was dropped respectively while on mempool, or after an onchain reorganization. -
Failed_to_broadcast
: Decreasepending
by the outbound amount plusmax_fees
.
Impact of inbound transactions statuses on balances:
-
Submitted (0/6)
: Increasemempool_in
by the incoming amount. -
Submitted (1+/6)
: Decreasemempool_in
by the incoming amount, Increaseunder_confirmation_in
by the incoming amount. -
Dropped
: Decreasemempool_in
orunder_confirmation_in
by the incoming amount, depending if the tx was dropped respectively while on mempool, or after an onchain reorganization. -
Confirmed
: Decreaseunder_confirmation_in
by the incoming amount, Increaseconfirmed
by the incoming amount.