[#wallet-CachedTxGetAmounts] = xref:wallet.adoc[wallet]::CachedTxGetAmounts :relfileprefix: ../ :mrdocs: Splits a wallet transaction into received and sent entries plus its fee. == Synopsis Declared in `<wallet/receive.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void CachedTxGetAmounts( xref:wallet/CWallet.adoc[CWallet] const& wallet, xref:wallet/CWalletTx.adoc[CWalletTx] const& wtx, std::list<COutputEntry>& listReceived, std::list<COutputEntry>& listSent, xref:CAmount.adoc[CAmount]& nFee, bool include_change); ---- == Parameters [cols="1,4"] |=== | Name| Description | *wallet* | The wallet that owns the transaction. | *wtx* | The wallet transaction to evaluate. | *listReceived* | Receives the outputs credited to the wallet. | *listSent* | Receives the outputs debited from the wallet. | *nFee* | Receives the fee paid by the transaction. | *include_change* | Whether to include change outputs in the results. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#