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