Splits a wallet transaction into received and sent entries plus its fee.

Synopsis

Declared in <wallet/receive.h>

void
CachedTxGetAmounts(
    CWallet const& wallet,
    CWalletTx const& wtx,
    std::list<COutputEntry>& listReceived,
    std::list<COutputEntry>& listSent,
    CAmount& nFee,
    bool include_change);

Parameters

Name

Description

wallet

The wallet that owns the transaction.

wtx

The wallet transaction to evaluate.

listReceived

Receives the outputs credited to the wallet.

listSent

Receives the outputs debited from the wallet.

nFee

Receives the fee paid by the transaction.

include_change

Whether to include change outputs in the results.

Created with MrDocs