wallet::CWallet::GetDebit

GetDebit overloads

Synopses

Declared in <wallet/wallet.h>

Compute the total amount debited from this wallet by a transaction's inputs.

CAmount
GetDebit(CTransaction const& tx) const;
» more...

Returns amount of debit, i.e. the amount leaving this wallet due to this input

CAmount
GetDebit(CTxIn const& txin) const;
» more...

Return Value

  • The total debit amount.
  • The amount debited from the wallet by this input.

Parameters

NameDescription
txThe transaction to value.
txinThe transaction input to value.