Bitcoin Core  0.19.99
P2P Digital Currency
Namespaces | Functions | Variables
rpcwallet.h File Reference
#include <memory>
#include <string>
#include <vector>
Include dependency graph for rpcwallet.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 interfaces
 

Functions

void RegisterWalletRPCCommands (interfaces::Chain &chain, std::vector< std::unique_ptr< interfaces::Handler >> &handlers)
 
std::shared_ptr< CWalletGetWalletForJSONRPCRequest (const JSONRPCRequest &request)
 Figures out what wallet, if any, to use for a JSONRPCRequest. More...
 
std::string HelpRequiringPassphrase (const CWallet *)
 
void EnsureWalletIsUnlocked (const CWallet *)
 
bool EnsureWalletIsAvailable (const CWallet *, bool avoidException)
 
LegacyScriptPubKeyManEnsureLegacyScriptPubKeyMan (CWallet &wallet, bool also_create=false)
 
UniValue getaddressinfo (const JSONRPCRequest &request)
 
UniValue signrawtransactionwithwallet (const JSONRPCRequest &request)
 

Variables

interfaces::Chaing_rpc_chain
 Pointer to chain interface that needs to be declared as a global to be accessible loadwallet and createwallet methods. More...
 

Function Documentation

◆ EnsureLegacyScriptPubKeyMan()

LegacyScriptPubKeyMan& EnsureLegacyScriptPubKeyMan ( CWallet wallet,
bool  also_create = false 
)

Definition at line 128 of file rpcwallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ EnsureWalletIsAvailable()

bool EnsureWalletIsAvailable ( const CWallet ,
bool  avoidException 
)

Definition at line 108 of file rpcwallet.cpp.

Here is the call graph for this function:

◆ EnsureWalletIsUnlocked()

void EnsureWalletIsUnlocked ( const CWallet )

Definition at line 120 of file rpcwallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getaddressinfo()

UniValue getaddressinfo ( const JSONRPCRequest request)

Definition at line 3716 of file rpcwallet.cpp.

Here is the call graph for this function:

◆ GetWalletForJSONRPCRequest()

std::shared_ptr<CWallet> GetWalletForJSONRPCRequest ( const JSONRPCRequest request)

Figures out what wallet, if any, to use for a JSONRPCRequest.

Parameters
[in]requestJSONRPCRequest that wishes to access a wallet
Returns
nullptr if no wallet should be used, or a pointer to the CWallet

Definition at line 88 of file rpcwallet.cpp.

Here is the call graph for this function:

◆ HelpRequiringPassphrase()

std::string HelpRequiringPassphrase ( const CWallet )

Definition at line 101 of file rpcwallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ RegisterWalletRPCCommands()

void RegisterWalletRPCCommands ( interfaces::Chain chain,
std::vector< std::unique_ptr< interfaces::Handler >> &  handlers 
)

Definition at line 4310 of file rpcwallet.cpp.

Here is the call graph for this function:

◆ signrawtransactionwithwallet()

UniValue signrawtransactionwithwallet ( const JSONRPCRequest request)

Definition at line 3214 of file rpcwallet.cpp.

Here is the call graph for this function:

Variable Documentation

◆ g_rpc_chain

interfaces::Chain* g_rpc_chain

Pointer to chain interface that needs to be declared as a global to be accessible loadwallet and createwallet methods.

Due to limitations of the RPC framework, there's currently no direct way to pass in state to RPC methods without globals.

Definition at line 4316 of file rpcwallet.cpp.