A Bitcoin transaction spends coins by taking earlier unspent outputs as its inputs and creating new outputs. Nodes then remove the spent outputs from their record of unspent outputs and add the newly created ones.
Sources and checks
T2learnmeabitcoin, UTXODocumentation, says this directly
UTXOs that get spent in a transaction are removed from the database, and the new outputs are added to the database.
UTXO set section, read 2026-11-20
T2Bitcoin: A Peer-to-Peer Electronic Cash System (white paper)Paper, supports part of it
To allow value to be split and combined, transactions contain multiple inputs and outputs.
Section 9, Combining and Splitting Value, read 2026-11-20
Checked at block 976,842, 21 Nov 2026, 04:28 UTC: recheck, quotes 2/2
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