[#CTxIn-2constructor-00]
= xref:CTxIn.adoc[CTxIn]::CTxIn
:relfileprefix: ../
:mrdocs:

Constructs an input spending output nOut of a given transaction&period;

== Synopsis

Declared in `&lt;primitives&sol;transaction&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
CTxIn(
    xref:Txid.adoc[Txid] hashPrevTx,
    uint32&lowbar;t nOut,
    xref:CScript.adoc[CScript] scriptSigIn = CScript(),
    uint32&lowbar;t nSequenceIn = SEQUENCE&lowbar;FINAL);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *hashPrevTx*
| Hash of the transaction holding the spent output&period;
| *nOut*
| Index of the spent output within that transaction&period;
| *scriptSigIn*
| The signature script satisfying the output&period;
| *nSequenceIn*
| The sequence number for the input&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
