Constructors

Synopses

Declared in <primitives/transaction.h>

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

CTxIn();

Constructs an input spending a given outpoint.

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

Constructs an input spending output nOut of a given transaction.

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

Parameters

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.

Created with MrDocs