curl --request GET \
--url https://api.example.com/api/v1/onchain/balance{
"confirmed_sat": 1,
"immature_sat": 1,
"total_sat": 1,
"trusted_pending_sat": 1,
"trusted_spendable_sat": 1,
"untrusted_pending_sat": 1
}Returns the current on-chain wallet balance, broken down by confirmation status. The trusted_spendable_sat field is the sum of confirmed_sat and trusted_pending_sat—the balance that can be safely spent without risk of double-spend.
curl --request GET \
--url https://api.example.com/api/v1/onchain/balance{
"confirmed_sat": 1,
"immature_sat": 1,
"total_sat": 1,
"trusted_pending_sat": 1,
"trusted_spendable_sat": 1,
"untrusted_pending_sat": 1
}Returns the on-chain balance
Confirmed and immediately spendable balance
x >= 0All coinbase outputs not yet matured
x >= 0All of them combined.
x >= 0Unconfirmed UTXOs generated by a wallet tx
x >= 0Get sum of trusted_pending and confirmed coins.
This is the balance you can spend right now that shouldn't get canceled via another party double spending it.
x >= 0Unconfirmed UTXOs received from an external wallet
x >= 0Was this page helpful?