Bitcoin Core 31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
util.cpp File Reference
#include <wallet/rpc/util.h>
#include <common/url.h>
#include <rpc/util.h>
#include <util/any.h>
#include <util/translation.h>
#include <wallet/context.h>
#include <wallet/wallet.h>
#include <optional>
#include <string_view>
#include <univalue.h>
Include dependency graph for util.cpp:

Go to the source code of this file.

Namespaces

namespace  wallet

Functions

bool wallet::GetAvoidReuseFlag (const CWallet &wallet, const UniValue &param)
std::string wallet::EnsureUniqueWalletName (const JSONRPCRequest &request, std::optional< std::string_view > wallet_name)
 Ensures that a wallet name is specified across the endpoint and wallet_name.
bool wallet::GetWalletNameFromJSONRPCRequest (const JSONRPCRequest &request, std::string &wallet_name)
std::shared_ptr< CWalletwallet::GetWalletForJSONRPCRequest (const JSONRPCRequest &request)
 Figures out what wallet, if any, to use for a JSONRPCRequest.
void wallet::EnsureWalletIsUnlocked (const CWallet &wallet)
WalletContextwallet::EnsureWalletContext (const std::any &context)
std::string wallet::LabelFromValue (const UniValue &value)
void wallet::PushParentDescriptors (const CWallet &wallet, const CScript &script_pubkey, UniValue &entry)
 Fetch parent descriptors of this scriptPubKey.
void wallet::HandleWalletError (const std::shared_ptr< CWallet > &wallet, DatabaseStatus &status, bilingual_str &error)
void wallet::AppendLastProcessedBlock (UniValue &entry, const CWallet &wallet)

Variables

static const std::string wallet::WALLET_ENDPOINT_BASE = "/wallet/"
const std::string wallet::HELP_REQUIRING_PASSPHRASE {"\nRequires wallet passphrase to be set with walletpassphrase call if wallet is encrypted.\n"}