5 #ifndef BITCOIN_WALLET_RECEIVE_H 6 #define BITCOIN_WALLET_RECEIVE_H 43 std::list<COutputEntry>& listReceived,
44 std::list<COutputEntry>& listSent,
59 Balance
GetBalance(
const CWallet&
wallet,
int min_depth = 0,
bool avoid_reuse =
true);
65 #endif // BITCOIN_WALLET_RECEIVE_H CAmount m_watchonly_trusted
isminetype InputIsMine(const CWallet &wallet, const CTxIn &txin)
bool OutputIsChange(const CWallet &wallet, const CTxOut &txout)
std::map< CTxDestination, CAmount > GetAddressBalances(const CWallet &wallet)
CAmount m_mine_immature
Immature coinbases in the main chain.
CAmount TxGetCredit(const CWallet &wallet, const CTransaction &tx, const isminefilter &filter)
Balance GetBalance(const CWallet &wallet, const int min_depth, bool avoid_reuse)
CAmount CachedTxGetChange(const CWallet &wallet, const CWalletTx &wtx)
void CachedTxGetAmounts(const CWallet &wallet, const CWalletTx &wtx, std::list< COutputEntry > &listReceived, std::list< COutputEntry > &listSent, CAmount &nFee, const isminefilter &filter, bool include_change)
int64_t CAmount
Amount in satoshis (Can be negative)
A transaction with a bunch of additional info that only the owner cares about.
std::underlying_type< isminetype >::type isminefilter
used for bitflags of isminetype
CAmount CachedTxGetCredit(const CWallet &wallet, const CWalletTx &wtx, const isminefilter &filter)
An input of a transaction.
bool CachedTxIsTrusted(const CWallet &wallet, const CWalletTx &wtx, std::set< uint256 > &trusted_parents)
isminetype
IsMine() return codes, which depend on ScriptPubKeyMan implementation.
CAmount CachedTxGetImmatureCredit(const CWallet &wallet, const CWalletTx &wtx, const isminefilter &filter)
CAmount m_watchonly_immature
A CWallet maintains a set of transactions and balances, and provides the ability to create new transa...
An output of a transaction.
CAmount m_watchonly_untrusted_pending
std::set< std::set< CTxDestination > > GetAddressGroupings(const CWallet &wallet)
bool ScriptIsChange(const CWallet &wallet, const CScript &script)
std::variant< CNoDestination, PubKeyDestination, PKHash, ScriptHash, WitnessV0ScriptHash, WitnessV0KeyHash, WitnessV1Taproot, WitnessUnknown > CTxDestination
A txout script categorized into standard templates.
CAmount CachedTxGetAvailableCredit(const CWallet &wallet, const CWalletTx &wtx, const isminefilter &filter)
#define EXCLUSIVE_LOCKS_REQUIRED(...)
Serialized script, used inside transaction inputs and outputs.
CAmount OutputGetChange(const CWallet &wallet, const CTxOut &txout)
CAmount m_mine_untrusted_pending
Untrusted, but in mempool (pending)
CAmount m_mine_trusted
Trusted, at depth=GetBalance.min_depth or more.
CTxDestination destination
The basic transaction that is broadcasted on the network and contained in blocks. ...
bool AllInputsMine(const CWallet &wallet, const CTransaction &tx, const isminefilter &filter)
Returns whether all of the inputs match the filter.
CAmount TxGetChange(const CWallet &wallet, const CTransaction &tx)
CAmount OutputGetCredit(const CWallet &wallet, const CTxOut &txout, const isminefilter &filter)
bool CachedTxIsFromMe(const CWallet &wallet, const CWalletTx &wtx, const isminefilter &filter)
CAmount CachedTxGetDebit(const CWallet &wallet, const CWalletTx &wtx, const isminefilter &filter)
filter decides which addresses will count towards the debit