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

Breakdown of a wallet&apos;s balance by category&period;

== Synopsis

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

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

== Data Members

[cols="1,4"]
|===
| Name| Description
| xref:wallet/Balance/m_mine_immature.adoc[`m&lowbar;mine&lowbar;immature`] 
| Immature coinbases in the main chain
| xref:wallet/Balance/m_mine_nonmempool.adoc[`m&lowbar;mine&lowbar;nonmempool`] 
| Coins spent by wallet txs that are not in the mempool
| xref:wallet/Balance/m_mine_trusted.adoc[`m&lowbar;mine&lowbar;trusted`] 
| Trusted, at depth&equals;GetBalance&period;min&lowbar;depth or more
| xref:wallet/Balance/m_mine_untrusted_pending.adoc[`m&lowbar;mine&lowbar;untrusted&lowbar;pending`] 
| Untrusted, but in mempool (pending)
| xref:wallet/Balance/m_mine_used.adoc[`m&lowbar;mine&lowbar;used`] 
| Trusted&sol;untrusted&sol;immature funds in utxos that have already been spent from (only populated if AVOID REUSE wallet flag is set)
|===


== Non-Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:wallet/GetBalance.adoc[`GetBalance`]
| Computes the wallet&apos;s balance broken down by category&period;
|===


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