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

A group of UTXOs paid to the same output script&period;

== Synopsis

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

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

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:wallet/OutputGroup/2constructor-01c.adoc[`OutputGroup`]         [.small]#[constructor]#
| Constructors
| xref:wallet/OutputGroup/EligibleForSpending.adoc[`EligibleForSpending`] 
| Report whether this group passes an eligibility filter&period;
| xref:wallet/OutputGroup/GetSelectionAmount.adoc[`GetSelectionAmount`] 
| Return the value used for this group during coin selection&period;
| xref:wallet/OutputGroup/Insert.adoc[`Insert`] 
| Add an output to the group, updating its aggregate values&period;
|===


== Data Members

[cols="1,4"]
|===
| Name| Description
| xref:wallet/OutputGroup/effective_value.adoc[`effective&lowbar;value`] 
| The value of the UTXOs after deducting the cost of spending them at the effective feerate&period;
| xref:wallet/OutputGroup/fee.adoc[`fee`] 
| The fee to spend these UTXOs at the effective feerate&period;
| xref:wallet/OutputGroup/long_term_fee.adoc[`long&lowbar;term&lowbar;fee`] 
| The fee to spend these UTXOs at the long term feerate&period;
| xref:wallet/OutputGroup/m_ancestors.adoc[`m&lowbar;ancestors`] 
| The aggregated count of unconfirmed ancestors of all UTXOs in this group&period; Not deduplicated and may overestimate when ancestors are shared&period;
| xref:wallet/OutputGroup/m_depth.adoc[`m&lowbar;depth`] 
| The minimum number of confirmations the UTXOs in the group have&period; Unconfirmed is 0&period;
| xref:wallet/OutputGroup/m_from_me.adoc[`m&lowbar;from&lowbar;me`] 
| Whether the UTXOs were sent by the wallet to itself&period; This is relevant because we may want at least a certain number of confirmations on UTXOs received from outside wallets while trusting our own UTXOs more&period;
| xref:wallet/OutputGroup/m_long_term_feerate.adoc[`m&lowbar;long&lowbar;term&lowbar;feerate`] 
| The feerate for spending a created change output eventually (i&period;e&period; not urgently, and thus at a lower feerate)&period; Calculated using long term fee estimate&period; This is used to decide whether it could be economical to create a change output&period;
| xref:wallet/OutputGroup/m_max_cluster_count.adoc[`m&lowbar;max&lowbar;cluster&lowbar;count`] 
| The maximum cluster count of a single UTXO in this output group&period;
| xref:wallet/OutputGroup/m_outputs.adoc[`m&lowbar;outputs`] 
| The list of UTXOs contained in this output group&period;
| xref:wallet/OutputGroup/m_subtract_fee_outputs.adoc[`m&lowbar;subtract&lowbar;fee&lowbar;outputs`] 
| Indicate that we are subtracting the fee from outputs&period; When true, the value that is used for coin selection is the UTXO&apos;s real value rather than effective value
| xref:wallet/OutputGroup/m_value.adoc[`m&lowbar;value`] 
| The total value of the UTXOs in sum&period;
| xref:wallet/OutputGroup/m_weight.adoc[`m&lowbar;weight`] 
| Total weight of the UTXOs in this group&period;
|===



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