Goal: understand how Bitcoin tracks ownership and why your “coins” act like discrete chunks.
Bitcoin works less like a bank account and more like cash bills. You have “pieces” of bitcoin. When you pay someone, you use some pieces and get “change” back.
Bitcoin tracks spendable outputs called UTXOs. When you send a transaction, you select one or more UTXOs as inputs, then create new outputs: one to the recipient and usually one back to you as change.
The global “state” of Bitcoin is the current UTXO set. Validation consists of ensuring inputs reference existing unspent outputs, satisfy script conditions, and that total outputs do not exceed total inputs (the difference is the fee).