PSBTOutput::PSBTOutput

Constructors

Synopses

Declared in <psbt.h>

Construct an output for the given PSBT version, amount, and script.

explicit
PSBTOutput(
    uint32_t psbt_version,
    CAmount amount,
    CScript const& script);
» more...

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

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

Parameters

NameDescription
psbt_versionThe PSBT version (0 or 2).
amountThe output amount.
scriptThe output script.
dtagTag selecting the deserializing constructor.
sThe input stream.