CTxIn::CTxIn

Constructs an input spending output nOut of a given transaction.

Synopsis

Declared in <primitives/transaction.h>

CTxIn(
    Txid hashPrevTx,
    uint32_t nOut,
    CScript scriptSigIn = CScript(),
    uint32_t nSequenceIn = SEQUENCE_FINAL);

Parameters

NameDescription
hashPrevTxHash of the transaction holding the spent output.
nOutIndex of the spent output within that transaction.
scriptSigInThe signature script satisfying the output.
nSequenceInThe sequence number for the input.