[#wallet-TxGetChange] = xref:wallet.adoc[wallet]::TxGetChange :relfileprefix: ../ :mrdocs: Returns the total change amount of a transaction. == Synopsis Declared in `<wallet/receive.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:CAmount.adoc[CAmount] TxGetChange( xref:wallet/CWallet.adoc[CWallet] const& wallet, xref:CTransaction.adoc[CTransaction] const& tx); ---- == Return Value The sum of the change amounts. == Parameters [cols="1,4"] |=== | Name| Description | *wallet* | The wallet to check against. | *tx* | The transaction to evaluate. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#