[#wallet-CachedTxGetCredit] = xref:wallet.adoc[wallet]::CachedTxGetCredit :relfileprefix: ../ :mrdocs: Returns the cached total credit of a wallet transaction. == Synopsis Declared in `<wallet/receive.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[requires_capability(0x7f2e11afc778)]] xref:CAmount.adoc[CAmount] CachedTxGetCredit( xref:wallet/CWallet.adoc[CWallet] const& wallet, xref:wallet/CWalletTx.adoc[CWalletTx] const& wtx, bool avoid_reuse); ---- == Return Value The credited amount. == Parameters [cols="1,4"] |=== | Name| Description | *wallet* | The wallet that owns the transaction. | *wtx* | The wallet transaction to evaluate. | *avoid_reuse* | Whether to exclude outputs to already‐used addresses. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#