A Bitcoin transaction output, the CTxOut class in Bitcoin Core, holds two fields: an amount (nValue) and a locking script (scriptPubKey) whose conditions the input that later spends the output must satisfy.
Sources and checks
T1Bitcoin Core src/primitives/transaction.h, CTxOutSource code, says this directly
CScript scriptPubKey;
class CTxOut, members nValue and scriptPubKey, read 2026-11-20
T1Bitcoin Core src/primitives/transaction.h, CTxOutSource code, supports part of it
An output of a transaction. It contains the public key that the next input
doc comment above class CTxOut, read 2026-11-20
bitcoin/bitcoin at f498a5a671 contains this text in src/primitives/transaction.h, and still does on the default branch.
Run it yourself
git clone https://github.com/bitcoin/bitcoin && git -C bitcoin show f498a5a6718d9157b6afb85412c3462439117702:src/primitives/transaction.h | grep -nF 'CAmount nValue;'bitcoin/bitcoin at f498a5a671 contains this text in src/primitives/transaction.h, and still does on the default branch.
Run it yourself
git clone https://github.com/bitcoin/bitcoin && git -C bitcoin show f498a5a6718d9157b6afb85412c3462439117702:src/primitives/transaction.h | grep -nF 'CScript scriptPubKey;'Checked at block 976,842, 21 Nov 2026, 04:28 UTC: recheck, quotes 2/2, code 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