CTxOut::CTxOut

Constructs an output with a given value and spending script.

Synopsis

Declared in <primitives/transaction.h>

CTxOut(
    CAmount const& nValueIn,
    CScript scriptPubKeyIn);

Parameters

NameDescription
nValueInThe amount carried by the output.
scriptPubKeyInThe script defining the spending conditions.