![]() |
Bitcoin ABC
0.22.15
P2P Digital Currency
|
Class for registering and managing all RPC calls. More...
#include <server.h>
Public Member Functions | |
RPCServer () | |
UniValue | ExecuteCommand (Config &config, const JSONRPCRequest &request) const |
Attempts to execute an RPC command from the given request. More... | |
void | RegisterCommand (std::unique_ptr< RPCCommand > command) |
Register an RPC command. More... | |
Private Attributes | |
RWCollection< RPCCommandMap > | commands |
|
inline |
UniValue RPCServer::ExecuteCommand | ( | Config & | config, |
const JSONRPCRequest & | request | ||
) | const |
Attempts to execute an RPC command from the given request.
If no RPC command exists that matches the request, an error is returned.
Definition at line 66 of file server.cpp.
void RPCServer::RegisterCommand | ( | std::unique_ptr< RPCCommand > | command | ) |
Register an RPC command.
Definition at line 95 of file server.cpp.
|
private |