wallet::COutput::COutput

Constructors

Synopses

Declared in <wallet/coinselection.h>

Construct a candidate output with an explicitly provided fee.

COutput(
    COutPoint const& outpoint,
    CTxOut const& txout,
    int depth,
    int input_bytes,
    bool solvable,
    bool safe,
    int64_t time,
    bool from_me,
    CAmount const fees);
» more...

Construct a candidate output, optionally pre-computing its fee and effective value from a feerate.

COutput(
    COutPoint const& outpoint,
    CTxOut const& txout,
    int depth,
    int input_bytes,
    bool solvable,
    bool safe,
    int64_t time,
    bool from_me,
    std::optional<CFeeRate> const feerate = std::nullopt);
» more...

Parameters

NameDescription
outpointThe outpoint identifying this UTXO.
txoutThe transaction output itself.
depthDepth in the block chain (confirmations).
input_bytesEstimated size of this output as a signed input, or -1 if unknown.
solvableWhether the wallet knows how to spend this output.
safeWhether this output is considered safe to spend.
timeTime of the transaction containing this output.
from_meWhether the containing transaction was sent from this wallet.
feesThe fee required to spend this output, used to derive its effective value.
feerateOptional target feerate used to pre-compute the fee and effective value.