5#ifndef BITCOIN_WALLET_RECEIVE_H
6#define BITCOIN_WALLET_RECEIVE_H
38 std::list<COutputEntry>& listReceived,
39 std::list<COutputEntry>& listSent,
51Balance
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)
Balance GetBalance(const CWallet &wallet, const int min_depth, bool avoid_reuse)
bool AllInputsMine(const CWallet &wallet, const CTransaction &tx)
Returns whether all of the inputs belong to the wallet.
bool CachedTxIsFromMe(const CWallet &wallet, const CWalletTx &wtx)
CAmount TxGetChange(const CWallet &wallet, const CTransaction &tx)
bool CachedTxIsTrusted(const CWallet &wallet, const CWalletTx &wtx, std::set< Txid > &trusted_parents)
bool ScriptIsChange(const CWallet &wallet, const CScript &script)
CAmount TxGetCredit(const CWallet &wallet, const CTransaction &tx)
CAmount OutputGetChange(const CWallet &wallet, const CTxOut &txout)
CAmount CachedTxGetDebit(const CWallet &wallet, const CWalletTx &wtx, bool avoid_reuse)
CAmount CachedTxGetChange(const CWallet &wallet, const CWalletTx &wtx)
CAmount CachedTxGetCredit(const CWallet &wallet, const CWalletTx &wtx, bool avoid_reuse)
void CachedTxGetAmounts(const CWallet &wallet, const CWalletTx &wtx, std::list< COutputEntry > &listReceived, std::list< COutputEntry > &listSent, CAmount &nFee, bool include_change)
std::map< CTxDestination, CAmount > GetAddressBalances(const CWallet &wallet)
bool InputIsMine(const CWallet &wallet, const CTxIn &txin)
CAmount OutputGetCredit(const CWallet &wallet, const CTxOut &txout)
std::set< std::set< CTxDestination > > GetAddressGroupings(const CWallet &wallet)
CAmount m_mine_immature
Immature coinbases in the main chain.
CAmount m_mine_untrusted_pending
Untrusted, but in mempool (pending)
CAmount m_mine_trusted
Trusted, at depth=GetBalance.min_depth or more.
CTxDestination destination
#define EXCLUSIVE_LOCKS_REQUIRED(...)