wallet::COutput

A UTXO under consideration for use in funding a new transaction.

Synopsis

Declared in <wallet/coinselection.h>

struct COutput;

Member Functions

NameDescription
COutput [constructor]Constructors
ApplyBumpFee Add the fee needed to bump this output's unconfirmed ancestors, updating the effective value.
GetEffectiveValue Return the output's value minus the fee to spend it.
GetFee Return the fee required to spend this output.
HasEffectiveValue Report whether an effective value has been computed for this output.
ToString Return a human-readable description of this output.
operator< Order outputs by their outpoint.

Data Members

NameDescription
ancestor_bump_fees The fee necessary to bump this UTXO's ancestor transactions to the target feerate
depth Depth in block chain. If > 0: the tx is on chain and has this many confirmations. If = 0: the tx is waiting confirmation. If < 0: a conflicting tx is on chain and has this many confirmations.
from_me Whether the transaction containing this output is sent from the owning wallet
input_bytes Pre-computed estimated size of this output as a fully-signed input in a transaction. Can be -1 if it could not be calculated
long_term_fee The fee required to spend this output at the consolidation feerate.
outpoint The outpoint identifying this UTXO
safe Whether this output is considered safe to spend. Unconfirmed transactions from outside keys and unconfirmed replacement transactions are considered unsafe and will not be used to fund new spending transactions.
solvable Whether we know how to spend this output, ignoring the lack of keys
time The time of the transaction containing this output as determined by CWalletTx::nTimeSmart
txout The output itself