xrpld
Loading...
Searching...
No Matches
RPCHandler.h
1#pragma once
2
3#include <xrpld/rpc/Context.h>
4#include <xrpld/rpc/Role.h>
5
6#include <xrpl/json/json_value.h>
7
8#include <rpcspec/Errors.hpp>
9
10#include <string_view>
11
12namespace xrpl::rpc {
13
14struct JsonContext;
15
19::rpc::Status
20doCommand(rpc::JsonContext&, json::Value&);
21
22Role
23roleRequired(unsigned int version, bool betaEnabled, std::string_view method);
24
25} // namespace xrpl::rpc
The api_version numbers this server serves.
Definition ApiVersion.h:26
Role roleRequired(unsigned int version, bool betaEnabled, std::string_view method)
::rpc::Status doCommand(rpc::JsonContext &context, json::Value &result)
Execute an RPC command and store the results in a json::Value.
Role
Indicates the level of administrative permission to grant.
Definition Role.h:27