Returns the cached total credit of a wallet transaction.
Declared in <wallet/receive.h>
[[requires_capability(0x7f2e11afc778)]]
CAmount
CachedTxGetCredit(
CWallet const& wallet,
CWalletTx const& wtx,
bool avoid_reuse);
The credited amount.
| 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. |