Bitcoin ABC
0.32.4
P2P Digital Currency
src
wallet
rpc
util.h
Go to the documentation of this file.
1
// Copyright (c) 2017-2021 The Bitcoin Core developers
2
// Distributed under the MIT software license, see the accompanying
3
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4
5
#ifndef BITCOIN_WALLET_RPC_UTIL_H
6
#define BITCOIN_WALLET_RPC_UTIL_H
7
8
#include <any>
9
#include <memory>
10
#include <string>
11
#include <vector>
12
13
struct
bilingual_str
;
14
class
CWallet
;
15
enum class
DatabaseStatus
;
16
class
JSONRPCRequest
;
17
class
LegacyScriptPubKeyMan
;
18
class
UniValue
;
19
struct
WalletContext
;
20
21
extern
const
std::string
HELP_REQUIRING_PASSPHRASE
;
22
29
std::shared_ptr<CWallet>
30
GetWalletForJSONRPCRequest
(
const
JSONRPCRequest
&request);
31
bool
GetWalletNameFromJSONRPCRequest
(
const
JSONRPCRequest
&request,
32
std::string &wallet_name);
33
34
void
EnsureWalletIsUnlocked
(
const
CWallet
*);
35
WalletContext
&
EnsureWalletContext
(
const
std::any &context);
36
LegacyScriptPubKeyMan
&
EnsureLegacyScriptPubKeyMan
(
CWallet
&
wallet
,
37
bool
also_create =
false
);
38
39
bool
GetAvoidReuseFlag
(
const
CWallet
*
const
wallet
,
const
UniValue
¶m);
40
bool
ParseIncludeWatchonly
(
const
UniValue
&include_watchonly,
41
const
CWallet
&
wallet
);
42
std::string
LabelFromValue
(
const
UniValue
&value);
43
44
void
HandleWalletError
(
const
std::shared_ptr<CWallet>
wallet
,
45
DatabaseStatus
&status,
bilingual_str
&error);
46
47
#endif
// BITCOIN_WALLET_RPC_UTIL_H
CWallet
A CWallet maintains a set of transactions and balances, and provides the ability to create new transa...
Definition:
wallet.h:269
JSONRPCRequest
Definition:
request.h:30
LegacyScriptPubKeyMan
Definition:
scriptpubkeyman.h:319
UniValue
Definition:
univalue.h:25
wallet
Definition:
interfaces.cpp:45
WalletContext
WalletContext struct containing references to state shared between CWallet instances,...
Definition:
context.h:35
bilingual_str
Bilingual messages:
Definition:
translation.h:17
DatabaseStatus
DatabaseStatus
Definition:
db.h:227
EnsureLegacyScriptPubKeyMan
LegacyScriptPubKeyMan & EnsureLegacyScriptPubKeyMan(CWallet &wallet, bool also_create=false)
Definition:
util.cpp:114
GetWalletForJSONRPCRequest
std::shared_ptr< CWallet > GetWalletForJSONRPCRequest(const JSONRPCRequest &request)
Figures out what wallet, if any, to use for a JSONRPCRequest.
Definition:
util.cpp:63
HandleWalletError
void HandleWalletError(const std::shared_ptr< CWallet > wallet, DatabaseStatus &status, bilingual_str &error)
Definition:
util.cpp:135
ParseIncludeWatchonly
bool ParseIncludeWatchonly(const UniValue &include_watchonly, const CWallet &wallet)
Used by RPC commands that have an include_watchonly parameter.
Definition:
util.cpp:38
GetAvoidReuseFlag
bool GetAvoidReuseFlag(const CWallet *const wallet, const UniValue ¶m)
Definition:
util.cpp:21
EnsureWalletContext
WalletContext & EnsureWalletContext(const std::any &context)
Definition:
util.cpp:104
HELP_REQUIRING_PASSPHRASE
const std::string HELP_REQUIRING_PASSPHRASE
Definition:
util.cpp:17
LabelFromValue
std::string LabelFromValue(const UniValue &value)
Definition:
util.cpp:127
GetWalletNameFromJSONRPCRequest
bool GetWalletNameFromJSONRPCRequest(const JSONRPCRequest &request, std::string &wallet_name)
Definition:
util.cpp:50
EnsureWalletIsUnlocked
void EnsureWalletIsUnlocked(const CWallet *)
Definition:
util.cpp:96
Generated on Fri Dec 5 2025 22:53:38 for Bitcoin ABC by
1.9.4