Constructs an input spending a given outpoint.

Synopsis

Declared in <primitives/transaction.h>

explicit
CTxIn(
    COutPoint prevoutIn,
    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.

Created with MrDocs