PSBTInput::PSBTInput

Construct an input for the given PSBT version and previous output.

Synopsis

Declared in <psbt.h>

explicit
PSBTInput(
    uint32_t psbt_version,
    Txid const& prev_txid,
    uint32_t prev_out,
    std::optional<uint32_t> sequence = std::nullopt);

Parameters

NameDescription
psbt_versionThe PSBT version (0 or 2).
prev_txidThe previous transaction id spent by this input.
prev_outThe previous output index spent by this input.
sequenceThe optional sequence number.