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

Computes the wallet&apos;s balance broken down by category&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:wallet/Balance.adoc[Balance]
GetBalance(
    xref:wallet/CWallet.adoc[CWallet] const& wallet,
    int min&lowbar;depth = 0,
    bool avoid&lowbar;reuse = true,
    bool include&lowbar;nonmempool = false);
----

== Return Value

The computed balance breakdown&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *wallet*
| The wallet to evaluate&period;
| *min&lowbar;depth*
| Minimum confirmation depth for coins to count as trusted&period;
| *avoid&lowbar;reuse*
| Whether to account for the avoid&hyphen;reuse flag&period;
| *include&lowbar;nonmempool*
| Whether to include coins spent by transactions not in the mempool&period;
|===


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