[#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. == Synopsis Declared in `<wallet/spend.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::optional<CAmount> GetAppropriateTotal(bool subtract_fee_outputs) const; ---- == Return Value The raw total when subtracting fees from outputs, otherwise the effective total. == Parameters [cols="1,4"] |=== | Name| Description | *subtract_fee_outputs* | Whether fees are subtracted from the outputs. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#