A Bitcoin transaction's fee is not written as a separate field: it is the amount by which the total value of its inputs exceeds the total value of its outputs, and Bitcoin Core rejects a transaction whose outputs are worth more than its inputs.
Sources and checks
T2Bitcoin: A Peer-to-Peer Electronic Cash System (white paper)Paper, says this directly
If the output value of a transaction is less than its input value, the difference is a transaction fee
Section 6, Incentive, read 2026-11-20
T1Bitcoin Core src/consensus/tx_verify.cpp, Consensus::CheckTxInputsSource code, says this directly
return state.Invalid(TxValidationResult::TX_CONSENSUS, "bad-txns-in-belowout",
Consensus::CheckTxInputs, value-in below value-out, read 2026-11-20
bitcoin/bitcoin at f498a5a671 contains this text in src/consensus/tx_verify.cpp, and still does on the default branch.
Run it yourself
git clone https://github.com/bitcoin/bitcoin && git -C bitcoin show f498a5a6718d9157b6afb85412c3462439117702:src/consensus/tx_verify.cpp | grep -nF 'bad-txns-in-belowout'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