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

Returns the cached change amount of a wallet transaction&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:CAmount.adoc[CAmount]
CachedTxGetChange(
    xref:wallet/CWallet.adoc[CWallet] const& wallet,
    xref:wallet/CWalletTx.adoc[CWalletTx] const& wtx);
----

== Return Value

The change amount&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *wallet*
| The wallet that owns the transaction&period;
| *wtx*
| The wallet transaction to evaluate&period;
|===


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