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

Return list of available coins and locked coins grouped by non&hyphen;change output address&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;requires&lowbar;capability(0x7f2e1e653938)&rsqb;&rsqb;
std::map&lt;CTxDestination, std::vector&lt;COutput&gt;&gt;
ListCoins(xref:wallet/CWallet.adoc[CWallet] const& wallet);
----

== Return Value

Available and locked coins grouped by their non&hyphen;change destination address&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *wallet*
| The wallet whose coins are listed&period;
|===


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