5 #ifndef BITCOIN_WALLET_RPC_UTIL_H 6 #define BITCOIN_WALLET_RPC_UTIL_H 16 #include <string_view> 24 class LegacyScriptPubKeyMan;
61 #endif // BITCOIN_WALLET_RPC_UTIL_H
static const RPCResult RESULT_LAST_PROCESSED_BLOCK
void HandleWalletError(const std::shared_ptr< CWallet > &wallet, DatabaseStatus &status, bilingual_str &error)
Special string with only hex chars.
std::string LabelFromValue(const UniValue &value)
std::string EnsureUniqueWalletName(const JSONRPCRequest &request, std::optional< std::string_view > wallet_name)
Ensures that a wallet name is specified across the endpoint and wallet_name.
WalletContext & EnsureWalletContext(const std::any &context)
const std::string HELP_REQUIRING_PASSPHRASE
#define EXCLUSIVE_LOCKS_REQUIRED(...)
Serialized script, used inside transaction inputs and outputs.
bool GetAvoidReuseFlag(const CWallet &wallet, const UniValue ¶m)
void EnsureWalletIsUnlocked(const CWallet &wallet)
void PushParentDescriptors(const CWallet &wallet, const CScript &script_pubkey, UniValue &entry)
Fetch parent descriptors of this scriptPubKey.
void AppendLastProcessedBlock(UniValue &entry, const CWallet &wallet)
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)