wallet::TxGetCredit

Returns the total credit of a transaction's outputs owned by the wallet.

Synopsis

Declared in <wallet/receive.h>

CAmount
TxGetCredit(
    CWallet const& wallet,
    CTransaction const& tx);

Return Value

The sum of the credited amounts.

Parameters

NameDescription
walletThe wallet to check ownership against.
txThe transaction to evaluate.