wallet::OutputGetCredit

Returns the credit an output contributes if it belongs to the wallet.

Synopsis

Declared in <wallet/receive.h>

CAmount
OutputGetCredit(
    CWallet const& wallet,
    CTxOut const& txout);

Return Value

The credited amount, or zero if the output is not owned.

Parameters

NameDescription
walletThe wallet to check ownership against.
txoutThe output to evaluate.