PSBTInput::PSBTInput

Constructors

Synopses

Declared in <psbt.h>

Construct an input by deserializing it from a stream (PSBTv2).

template<typename Stream>
explicit
PSBTInput(
    deserialize_type dtag,
    Stream& s,
    uint32_t psbt_version);
» more...

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

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

Parameters

NameDescription
dtagTag selecting the deserializing constructor.
sThe input stream.
psbt_versionThe PSBT version (must be 2).
prev_txidThe previous transaction id spent by this input.
prev_outThe previous output index spent by this input.
sequenceThe optional sequence number.