A Bitcoin balance is not a number stored on the chain. The balance of an address is the sum of the unspent outputs locked to it, and a wallet's balance is the total of the unspent outputs it can spend.
Sources and checks
T2learnmeabitcoin, UTXODocumentation, says this directly
Therefore, the balance of an address is just the sum of all the UTXOs that have been locked to that address.
Address balance, read 2026-11-20
T1Bitcoin Core src/wallet/rpc/coins.cpp, listunspent help textSource code, supports part of it
Returns array of unspent transaction outputs
listunspent RPC description, read 2026-11-20
bitcoin/bitcoin at f498a5a671 contains this text in src/wallet/rpc/coins.cpp, and still does on the default branch.
Run it yourself
git clone https://github.com/bitcoin/bitcoin && git -C bitcoin show f498a5a6718d9157b6afb85412c3462439117702:src/wallet/rpc/coins.cpp | grep -nF 'Returns array of unspent transaction outputs'Checked at block 976,842, 21 Nov 2026, 04:28 UTC: recheck, quotes 2/2, code 1/1
History
Nothing is edited silently; every revision keeps what it replaced.
- 20 Nov 2026, 16:42 UTCblock 976,753
Published Revision 1, run 2026-11-20-seed-utxo-model