A wallet balance is a sum of unspent outputs

UTXO stands for unspent transaction output. Each output specifies an amount and conditions that a later transaction must satisfy to spend it. A wallet finds the relevant outputs and adds up their amounts to show a balance. Each output is a separate record, even when several outputs have the same value or use the same address.

Follow a payment with change

Suppose you have an output worth 100,000 satoshis, want to pay someone 60,000, and allow 1,000 for the transaction fee. The new transaction refers to the original 100,000-satoshi output as its input, then creates a 60,000-satoshi payment output and a 39,000-satoshi change output. Once the transaction is confirmed, the original output has been spent. Both new outputs can be inspected separately.

Where the fee appears

For an ordinary Bitcoin transaction, the fee is the difference between the total value of its inputs and the total value of its outputs. In the example, 100,000 minus 99,000 gives the fee of 1,000 satoshis. This amount is illustrative. If a wallet selects several smaller outputs, each selected output appears as a distinct input.

What an explorer can tell you

An explorer can show which earlier output each input refers to and the value of each new output. A single transaction can contain an output that returns change to the sender, so counting outputs alone does not tell you how many people received money. Some outputs impose additional conditions, such as multiple signatures or a time lock.

Sources

  1. Bitcoin 开发者指南:交易
  2. Bitcoin 白皮书:交易与金额组合

Prepared with AI assistance. This guide explains protocol behavior for educational use.

Editorial policy (Chinese)