Bitcoin
rpcwallet.h
Go to the documentation of this file.
1 // Copyright (c) 2016-2019 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_RPCWALLET_H
6 #define BITCOIN_WALLET_RPCWALLET_H
7 
8 #include <memory>
9 #include <string>
10 #include <vector>
11 
12 class CRPCTable;
13 class CWallet;
14 class JSONRPCRequest;
15 class UniValue;
17 class CTransaction;
18 
19 namespace interfaces {
20 class Chain;
21 class Handler;
22 }
23 
24 void RegisterWalletRPCCommands(interfaces::Chain& chain, std::vector<std::unique_ptr<interfaces::Handler>>& handlers);
25 
32 std::shared_ptr<CWallet> GetWalletForJSONRPCRequest(const JSONRPCRequest& request);
33 
34 std::string HelpRequiringPassphrase(const CWallet*);
35 void EnsureWalletIsUnlocked(const CWallet*);
36 bool EnsureWalletIsAvailable(const CWallet*, bool avoidException);
37 
38 UniValue getaddressinfo(const JSONRPCRequest& request);
40 #endif //BITCOIN_WALLET_RPCWALLET_H
Definition: chain.h:58
Definition: wallet.h:724
bool EnsureWalletIsAvailable(const CWallet *, bool avoidException)
Definition: rpcwallet.cpp:93
Definition: univalue.h:19
Definition: psbt.h:382
UniValue getaddressinfo(const JSONRPCRequest &request)
Definition: rpcwallet.cpp:3619
Definition: dummywallet.cpp:11
Definition: transaction.h:270
std::shared_ptr< CWallet > GetWalletForJSONRPCRequest(const JSONRPCRequest &request)
Definition: rpcwallet.cpp:73
UniValue signrawtransactionwithwallet(const JSONRPCRequest &request)
Definition: rpcwallet.cpp:3173
void RegisterWalletRPCCommands(interfaces::Chain &chain, std::vector< std::unique_ptr< interfaces::Handler >> &handlers)
Definition: rpcwallet.cpp:4191
Definition: server.h:121
void EnsureWalletIsUnlocked(const CWallet *)
Definition: rpcwallet.cpp:105
std::string HelpRequiringPassphrase(const CWallet *)
Definition: rpcwallet.cpp:86
Definition: request.h:27