5 #ifndef BITCOIN_WALLET_RECEIVE_H 6 #define BITCOIN_WALLET_RECEIVE_H 38 std::list<COutputEntry>& listReceived,
39 std::list<COutputEntry>& listSent,
51 Balance
GetBalance(
const CWallet&
wallet,
int min_depth = 0,
bool avoid_reuse =
true);
57 #endif // BITCOIN_WALLET_RECEIVE_H CAmount CachedTxGetDebit(const CWallet &wallet, const CWalletTx &wtx, bool avoid_reuse)
bool CachedTxIsTrusted(const CWallet &wallet, const CWalletTx &wtx, std::set< Txid > &trusted_parents)
bool OutputIsChange(const CWallet &wallet, const CTxOut &txout)
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)
CAmount m_mine_immature
Immature coinbases in the main chain.
CAmount CachedTxGetCredit(const CWallet &wallet, const CWalletTx &wtx, bool avoid_reuse)
Balance GetBalance(const CWallet &wallet, const int min_depth, bool avoid_reuse)
CAmount CachedTxGetChange(const CWallet &wallet, const CWalletTx &wtx)
bool CachedTxIsFromMe(const CWallet &wallet, const CWalletTx &wtx)
int64_t CAmount
Amount in satoshis (Can be negative)
A transaction with a bunch of additional info that only the owner cares about.
An input of a transaction.
A CWallet maintains a set of transactions and balances, and provides the ability to create new transa...
An output of a transaction.
std::set< std::set< CTxDestination > > GetAddressGroupings(const CWallet &wallet)
bool ScriptIsChange(const CWallet &wallet, const CScript &script)
CAmount OutputGetCredit(const CWallet &wallet, const CTxOut &txout)
#define EXCLUSIVE_LOCKS_REQUIRED(...)
Serialized script, used inside transaction inputs and outputs.
CAmount OutputGetChange(const CWallet &wallet, const CTxOut &txout)
std::variant< CNoDestination, PubKeyDestination, PKHash, ScriptHash, WitnessV0ScriptHash, WitnessV0KeyHash, WitnessV1Taproot, PayToAnchor, WitnessUnknown > CTxDestination
A txout script categorized into standard templates.
CAmount m_mine_untrusted_pending
Untrusted, but in mempool (pending)
CAmount m_mine_trusted
Trusted, at depth=GetBalance.min_depth or more.
CTxDestination destination
bool InputIsMine(const CWallet &wallet, const CTxIn &txin)
The basic transaction that is broadcasted on the network and contained in blocks. ...
CAmount TxGetChange(const CWallet &wallet, const CTransaction &tx)
bool AllInputsMine(const CWallet &wallet, const CTransaction &tx)
Returns whether all of the inputs belong to the wallet.
CAmount TxGetCredit(const CWallet &wallet, const CTransaction &tx)