wallet::CachedTxGetAmounts

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

NameDescription
walletThe wallet that owns the transaction.
wtxThe wallet transaction to evaluate.
listReceivedReceives the outputs credited to the wallet.
listSentReceives the outputs debited from the wallet.
nFeeReceives the fee paid by the transaction.
include_changeWhether to include change outputs in the results.