Bitcoin UTXO Discovery and Balance Reconciliation
A wallet balance is computed from observed unspent outputs and policy, not from a single global account number. Confirmed and unconfirmed states must be distinguished.
Implementation approach
Scan the wallet descriptors within documented bounds, track block height and mempool state, and reconcile replacements or reorganizations. Report when discovery is incomplete.
Engineering checks
Before treating the integration as complete, confirm that inputs are validated, errors are explicit, and all sensitive operations are restricted to authorized callers. Repeat the workflow on a clean test environment and inspect both successful and failed requests.
Safety and limitations
An incomplete scan must not be presented as a verified zero balance.
Related reference
Continue with the [related Bitcoin reference](/wiki/bitcoin-utxo) for definitions and background.
