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

Group coins by the provided filters&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:wallet/FilteredOutputGroups.adoc[FilteredOutputGroups]
GroupOutputs(
    xref:wallet/CWallet.adoc[CWallet] const& wallet,
    xref:wallet/CoinsResult.adoc[CoinsResult] const& coins,
    xref:wallet/CoinSelectionParams.adoc[CoinSelectionParams] const& coin&lowbar;sel&lowbar;params,
    std::vector&lt;SelectionFilter&gt; const& filters);
----

== Return Value

The coins grouped according to the provided filters&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *wallet*
| The wallet that owns the coins&period;
| *coins*
| The available coins to group&period;
| *coin&lowbar;sel&lowbar;params*
| Parameters controlling how coins are grouped&period;
| *filters*
| The filters used to partition the coins&period;
|===


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