[#wallet-COutput-2constructor-00]
= xref:wallet.adoc[wallet]::xref:wallet/COutput.adoc[COutput]::COutput
:relfileprefix: ../../
:mrdocs:

Construct a candidate output with an explicitly provided fee&period;

== Synopsis

Declared in `&lt;wallet&sol;coinselection&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
COutput(
    xref:COutPoint.adoc[COutPoint] const& outpoint,
    xref:CTxOut.adoc[CTxOut] const& txout,
    int depth,
    int input&lowbar;bytes,
    bool solvable,
    bool safe,
    int64&lowbar;t time,
    bool from&lowbar;me,
    xref:CAmount.adoc[CAmount] const fees);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *outpoint*
| The outpoint identifying this UTXO&period;
| *txout*
| The transaction output itself&period;
| *depth*
| Depth in the block chain (confirmations)&period;
| *input&lowbar;bytes*
| Estimated size of this output as a signed input, or &hyphen;1 if unknown&period;
| *solvable*
| Whether the wallet knows how to spend this output&period;
| *safe*
| Whether this output is considered safe to spend&period;
| *time*
| Time of the transaction containing this output&period;
| *from&lowbar;me*
| Whether the containing transaction was sent from this wallet&period;
| *fees*
| The fee required to spend this output, used to derive its effective value&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
