Mosaic Oracle Wire

Bitcoin

How Bitcoin Tracks Spendable Balances

Bitcoin wallets add up spendable transaction outputs. The network tracks those outputs individually instead of maintaining a balance for each wallet.

What a wallet adds up

Each unspent transaction output carries a value and a condition for spending it. A wallet finds the outputs it can unlock and reports their combined amount. Two wallets showing one bitcoin can therefore hold very different sets of outputs.

What happens when you pay

Imagine a wallet selects an output worth 0.01 BTC for a smaller purchase. The transaction consumes the entire selected output and can create separate outputs for the recipient and for change back to the sender. The difference between the inputs and the new outputs is the fee.

Why output selection matters

Spending several outputs generally requires more transaction data than spending one comparable output. When comparing two transfers, the amount sent alone tells you little about how much room they require in a block.

Sources