[#wallet-COutput-2constructor-0f] = xref:wallet.adoc[wallet]::xref:wallet/COutput.adoc[COutput]::COutput :relfileprefix: ../../ :mrdocs: Constructors == Synopses Declared in `<wallet/coinselection.h>` Construct a candidate output with an explicitly provided fee. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:wallet/COutput/2constructor-00.adoc[COutput]( xref:COutPoint.adoc[COutPoint] const& outpoint, xref:CTxOut.adoc[CTxOut] const& txout, int depth, int input_bytes, bool solvable, bool safe, int64_t time, bool from_me, xref:CAmount.adoc[CAmount] const fees); ---- [.small]#xref:wallet/COutput/2constructor-00.adoc[_» more..._]# Construct a candidate output, optionally pre‐computing its fee and effective value from a feerate. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:wallet/COutput/2constructor-09.adoc[COutput]( xref:COutPoint.adoc[COutPoint] const& outpoint, xref:CTxOut.adoc[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); ---- [.small]#xref:wallet/COutput/2constructor-09.adoc[_» more..._]# == Parameters [cols="1,4"] |=== | Name| Description | *outpoint* | The outpoint identifying this UTXO. | *txout* | The transaction output itself. | *depth* | Depth in the block chain (confirmations). | *input_bytes* | Estimated size of this output as a signed input, or ‐1 if unknown. | *solvable* | Whether the wallet knows how to spend this output. | *safe* | Whether this output is considered safe to spend. | *time* | Time of the transaction containing this output. | *from_me* | Whether the containing transaction was sent from this wallet. | *fees* | The fee required to spend this output, used to derive its effective value. | *feerate* | Optional target feerate used to pre‐compute the fee and effective value. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#