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