PIVX Core  5.6.99
P2P Digital Currency
rpcwallet.h
Go to the documentation of this file.
1 // Copyright (c) 2016-2021 The Bitcoin Core developers
2 // Copyright (c) 2021 The PIVX Core developers
3 // Distributed under the MIT software license, see the accompanying
4 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
5 
6 #ifndef PIVX_WALLET_RPCWALLET_H
7 #define PIVX_WALLET_RPCWALLET_H
8 
9 #include <string>
10 
11 class CRPCTable;
12 class CWallet;
13 class JSONRPCRequest;
14 
16 
24 
25 std::string HelpRequiringPassphrase(CWallet* const pwallet);
26 bool EnsureWalletIsAvailable(CWallet* const pwallet, bool avoidException);
27 void EnsureWalletIsUnlocked(CWallet* const pwallet, bool fAllowAnonOnly = false);
28 
29 #endif // PIVX_WALLET_RPCWALLET_H
PIVX RPC command dispatcher.
Definition: server.h:147
A CWallet is an extension of a keystore, which also maintains a set of transactions and balances,...
Definition: wallet.h:577
CWallet * GetWalletForJSONRPCRequest(const JSONRPCRequest &request)
Figures out what wallet, if any, to use for a JSONRPCRequest.
Definition: rpcwallet.cpp:39
std::string HelpRequiringPassphrase(CWallet *const pwallet)
Definition: rpcwallet.cpp:54
void RegisterWalletRPCCommands(CRPCTable &tableRPC)
Definition: rpcwallet.cpp:4853
void EnsureWalletIsUnlocked(CWallet *const pwallet, bool fAllowAnonOnly=false)
Definition: rpcwallet.cpp:71
bool EnsureWalletIsAvailable(CWallet *const pwallet, bool avoidException)
Definition: rpcwallet.cpp:59
CRPCTable tableRPC
Definition: server.cpp:565