5 #ifndef BITCOIN_WALLET_RPC_UTIL_H
6 #define BITCOIN_WALLET_RPC_UTIL_H
21 class 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.
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)
bool ParseIncludeWatchonly(const UniValue &include_watchonly, const CWallet &wallet)
Used by RPC commands that have an include_watchonly parameter.
int64_t ParseISO8601DateTime(const std::string &str)
bool GetAvoidReuseFlag(const CWallet &wallet, const UniValue ¶m)
bool error(const char *fmt, const Args &... args)