CTxIn::CTxIn

Constructors

Synopses

Declared in <primitives/transaction.h>

Constructs an input with a final sequence number and empty fields.

CTxIn();
» more...

Constructs an input spending a given outpoint.

explicit
CTxIn(
    COutPoint prevoutIn,
    CScript scriptSigIn = CScript(),
    uint32_t nSequenceIn = SEQUENCE_FINAL);
» more...

Constructs an input spending output nOut of a given transaction.

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

Parameters

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