[#CTxIn-2constructor-00] = xref:CTxIn.adoc[CTxIn]::CTxIn :relfileprefix: ../ :mrdocs: Constructs an input spending output nOut of a given transaction. == Synopsis Declared in `<primitives/transaction.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- CTxIn( xref:Txid.adoc[Txid] hashPrevTx, uint32_t nOut, xref:CScript.adoc[CScript] scriptSigIn = CScript(), uint32_t nSequenceIn = SEQUENCE_FINAL); ---- == Parameters [cols="1,4"] |=== | Name| Description | *hashPrevTx* | Hash of the transaction holding the spent output. | *nOut* | Index of the spent output within that transaction. | *scriptSigIn* | The signature script satisfying the output. | *nSequenceIn* | The sequence number for the input. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#