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

Returns the appropriate total based on whether fees are being subtracted from outputs&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
std::optional&lt;CAmount&gt;
GetAppropriateTotal(bool subtract&lowbar;fee&lowbar;outputs) const;
----

== Return Value

The raw total when subtracting fees from outputs, otherwise the effective total&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *subtract&lowbar;fee&lowbar;outputs*
| Whether fees are subtracted from the outputs&period;
|===


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