A Bitcoin transaction input names the output it spends by an outpoint: the transaction id of the earlier transaction plus a 32-bit index into that transaction's list of outputs, represented in Bitcoin Core by the COutPoint class.
Sources and checks
T1Bitcoin Core src/primitives/transaction.h, COutPointSource code, says this directly
An outpoint - a combination of a transaction hash and an index n into its vout
doc comment above class COutPoint, read 2026-11-20
T1Bitcoin Core src/primitives/transaction.h, CTxInSource code, supports part of it
An input of a transaction. It contains the location of the previous
doc comment above class CTxIn, 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 'uint32_t n;'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 'COutPoint prevout;'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