Balances: add detailed available, pending, immature, total, and watch-only display #633

Open
opened 2026-05-06 08:55:41 +00:00 by johnny9 · 1 comment
johnny9 commented 2026-05-06 08:55:41 +00:00 (Migrated from github.com)

Code Gap

The QML wallet shell currently exposes a single selected-wallet balance from WalletQmlModel::balance(), backed by interfaces::Wallet::getBalance(). Qt's overview shows separate spendable, pending, immature, and total balances, and it can expose watch-only balance sections.

The current single-balance badge is an initial implementation. The detailed breakdown is a secondary enhancement to make balance state clearer before v1.0.

Work Needed

  • Expose release-scoped balance fields from the wallet model: available/spendable, pending, immature, total, and watch-only where applicable.
  • Add a QML balance overview surface or expanded wallet badge/details surface.
  • Hide zero/irrelevant rows consistently with the selected release behavior.
  • Refresh all balance fields on wallet transaction/status changes and display-unit changes.
  • Add coverage for confirmed, unconfirmed, immature coinbase, and watch-only balances.
<!-- migrated-from: https://github.com/johnny9/BitcoinCoreAppDevelopment/issues/91 --> ## Code Gap The QML wallet shell currently exposes a single selected-wallet balance from `WalletQmlModel::balance()`, backed by `interfaces::Wallet::getBalance()`. Qt's overview shows separate spendable, pending, immature, and total balances, and it can expose watch-only balance sections. The current single-balance badge is an initial implementation. The detailed breakdown is a secondary enhancement to make balance state clearer before v1.0. ## Work Needed - Expose release-scoped balance fields from the wallet model: available/spendable, pending, immature, total, and watch-only where applicable. - Add a QML balance overview surface or expanded wallet badge/details surface. - Hide zero/irrelevant rows consistently with the selected release behavior. - Refresh all balance fields on wallet transaction/status changes and display-unit changes. - Add coverage for confirmed, unconfirmed, immature coinbase, and watch-only balances.
davidgumberg commented 2026-08-06 23:57:27 +00:00 (Migrated from github.com)

Related to #849

One suggestion for pending balance is that I don't think that single-conf tx'es should be included in balance, which is the behavior of qt-widgets currently, no business or exchange (should) accept a single-confirmation as funds received and Bitcoin Core probably shouldn't either. I think the word balance is meant to reflect amount of outputs that you are allowed to create spending transactions with, not indicate how many funds are in your certain possession

Related to #849 One suggestion for pending balance is that I don't think that single-conf tx'es should be included in balance, which is the behavior of qt-widgets currently, no business or exchange (should) accept a single-confirmation as funds received and Bitcoin Core probably shouldn't either. I think the word `balance` is meant to reflect amount of outputs that you are allowed to create spending transactions with, not indicate how many funds are in your certain possession
Sign in to join this conversation.
No description provided.