Bitcoin Core  0.20.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...
 
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 125 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 105 of file rpcwallet.cpp.

Here is the call graph for this function:

◆ EnsureWalletIsUnlocked()

void EnsureWalletIsUnlocked ( const CWallet )

Definition at line 117 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 3691 of file rpcwallet.cpp.

Here is the call graph for this function:
Here is the caller 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 92 of file rpcwallet.cpp.

Here is the call graph for this function:

◆ RegisterWalletRPCCommands()

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

Definition at line 4266 of file rpcwallet.cpp.

◆ signrawtransactionwithwallet()

UniValue signrawtransactionwithwallet ( const JSONRPCRequest request)

Definition at line 3226 of file rpcwallet.cpp.

Here is the call graph for this function:
Here is the caller 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 4337 of file rpcwallet.cpp.