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

Populate the CoinsResult struct with vectors of available COutputs, organized by OutputType&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;requires&lowbar;capability(0x7f94fdebf4b0)&rsqb;&rsqb;
xref:wallet/CoinsResult.adoc[CoinsResult]
AvailableCoins(
    xref:wallet/CWallet.adoc[CWallet] const& wallet,
    xref:wallet/CCoinControl.adoc[CCoinControl] const* coinControl = nullptr,
    std::optional&lt;CFeeRate&gt; feerate = std&colon;&colon;nullopt,
    xref:wallet/CoinFilterParams.adoc[CoinFilterParams] const& params = &lcub;&rcub;);
----

== Return Value

The available outputs organized by OutputType&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *wallet*
| The wallet whose outputs are examined&period;
| *coinControl*
| Optional coin control settings restricting which outputs are considered&period;
| *feerate*
| Optional fee rate used to compute each output&apos;s effective value&period;
| *params*
| Filter parameters constraining which outputs are returned&period;
|===


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