5#ifndef BITCOIN_WALLET_RPC_UTIL_H
6#define BITCOIN_WALLET_RPC_UTIL_H
22class LegacyScriptPubKeyMan;
Serialized script, used inside transaction inputs and outputs.
std::shared_ptr< CWallet > GetWalletForJSONRPCRequest(const JSONRPCRequest &request)
Figures out what wallet, if any, to use for a JSONRPCRequest.
static const RPCResult RESULT_LAST_PROCESSED_BLOCK
bool GetWalletNameFromJSONRPCRequest(const JSONRPCRequest &request, std::string &wallet_name)
void HandleWalletError(const std::shared_ptr< CWallet > wallet, DatabaseStatus &status, bilingual_str &error)
void EnsureWalletIsUnlocked(const CWallet &wallet)
const LegacyScriptPubKeyMan & EnsureConstLegacyScriptPubKeyMan(const CWallet &wallet)
const std::string HELP_REQUIRING_PASSPHRASE
void PushParentDescriptors(const CWallet &wallet, const CScript &script_pubkey, UniValue &entry)
Fetch parent descriptors of this scriptPubKey.
LegacyScriptPubKeyMan & EnsureLegacyScriptPubKeyMan(CWallet &wallet, bool also_create)
WalletContext & EnsureWalletContext(const std::any &context)
std::string LabelFromValue(const UniValue &value)
void AppendLastProcessedBlock(UniValue &entry, const CWallet &wallet)
bool ParseIncludeWatchonly(const UniValue &include_watchonly, const CWallet &wallet)
Used by RPC commands that have an include_watchonly parameter.
bool GetAvoidReuseFlag(const CWallet &wallet, const UniValue ¶m)
@ STR_HEX
Special string with only hex chars.
#define EXCLUSIVE_LOCKS_REQUIRED(...)