Clio develop
The XRP Ledger API server.
Loading...
Searching...
No Matches
rpc::RPCCenter Struct Reference

Registry of RPC commands supported by Clio. More...

#include <RPCCenter.hpp>

Static Public Member Functions

static bool isRpcName (std::string_view s)
 Checks if a string is a valid RPC command name.
 
static bool isHandled (std::string_view s)
 Checks if a string is a RPC command handled by Clio without forwarding to rippled.
 
static bool isForwarded (std::string_view s)
 Checks if a string is a RPC command that will be forwarded to rippled.
 

Detailed Description

Registry of RPC commands supported by Clio.

The RPCCenter maintains lists of RPC commands that can be handled locally and those that need to be forwarded to rippled.

Member Function Documentation

◆ isForwarded()

bool rpc::RPCCenter::isForwarded ( std::string_view s)
static

Checks if a string is a RPC command that will be forwarded to rippled.

Parameters
sThe string to check
Returns
true if the string is a forwarded RPC command, false otherwise

◆ isHandled()

bool rpc::RPCCenter::isHandled ( std::string_view s)
static

Checks if a string is a RPC command handled by Clio without forwarding to rippled.

Parameters
sThe string to check
Returns
true if the string is a handled RPC command, false otherwise

◆ isRpcName()

bool rpc::RPCCenter::isRpcName ( std::string_view s)
static

Checks if a string is a valid RPC command name.

Parameters
sThe string to check
Returns
true if the string is a recognized RPC name, false otherwise

The documentation for this struct was generated from the following files: