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

A UTXO under consideration for use in funding a new transaction&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
struct COutput;
----

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:wallet/COutput/2constructor-0f.adoc[`COutput`]         [.small]#[constructor]#
| Constructors
| xref:wallet/COutput/ApplyBumpFee.adoc[`ApplyBumpFee`] 
| Add the fee needed to bump this output&apos;s unconfirmed ancestors, updating the effective value&period;
| xref:wallet/COutput/GetEffectiveValue.adoc[`GetEffectiveValue`] 
| Return the output&apos;s value minus the fee to spend it&period;
| xref:wallet/COutput/GetFee.adoc[`GetFee`] 
| Return the fee required to spend this output&period;
| xref:wallet/COutput/HasEffectiveValue.adoc[`HasEffectiveValue`] 
| Report whether an effective value has been computed for this output&period;
| xref:wallet/COutput/ToString.adoc[`ToString`] 
| Return a human&hyphen;readable description of this output&period;
| xref:wallet/COutput/operator_lt.adoc[`operator&lt;`] 
| Order outputs by their outpoint&period;
|===


== Data Members

[cols="1,4"]
|===
| Name| Description
| xref:wallet/COutput/ancestor_bump_fees.adoc[`ancestor&lowbar;bump&lowbar;fees`] 
| The fee necessary to bump this UTXO&apos;s ancestor transactions to the target feerate
| xref:wallet/COutput/depth.adoc[`depth`] 
| Depth in block chain&period; If &gt; 0&colon; the tx is on chain and has this many confirmations&period; If &equals; 0&colon; the tx is waiting confirmation&period; If &lt; 0&colon; a conflicting tx is on chain and has this many confirmations&period;
| xref:wallet/COutput/from_me.adoc[`from&lowbar;me`] 
| Whether the transaction containing this output is sent from the owning wallet
| xref:wallet/COutput/input_bytes.adoc[`input&lowbar;bytes`] 
| Pre&hyphen;computed estimated size of this output as a fully&hyphen;signed input in a transaction&period; Can be &hyphen;1 if it could not be calculated
| xref:wallet/COutput/long_term_fee.adoc[`long&lowbar;term&lowbar;fee`] 
| The fee required to spend this output at the consolidation feerate&period;
| xref:wallet/COutput/outpoint.adoc[`outpoint`] 
| The outpoint identifying this UTXO
| xref:wallet/COutput/safe.adoc[`safe`] 
| Whether this output is considered safe to spend&period; Unconfirmed transactions from outside keys and unconfirmed replacement transactions are considered unsafe and will not be used to fund new spending transactions&period;
| xref:wallet/COutput/solvable.adoc[`solvable`] 
| Whether we know how to spend this output, ignoring the lack of keys
| xref:wallet/COutput/time.adoc[`time`] 
| The time of the transaction containing this output as determined by CWalletTx&colon;&colon;nTimeSmart
| xref:wallet/COutput/txout.adoc[`txout`] 
| The output itself
|===



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