Returns the total credit of a transaction's outputs owned by the wallet.
Declared in <wallet/receive.h>
CAmount
TxGetCredit(
CWallet const& wallet,
CTransaction const& tx);
The sum of the credited amounts.
| Name | Description |
|---|---|
| wallet | The wallet to check ownership against. |
| tx | The transaction to evaluate. |