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

Name

Description

wallet

The wallet to check ownership against.

txout

The output to evaluate.

Created with MrDocs