rippled
Loading...
Searching...
No Matches
Request.h
1#pragma once
2
3#include <xrpl/beast/utility/Journal.h>
4#include <xrpl/json/json_value.h>
5#include <xrpl/resource/Charge.h>
6#include <xrpl/resource/Fees.h>
7
8namespace xrpl {
9
10class Application;
11
12namespace RPC {
13
14struct Request
15{
16 explicit Request(
17 beast::Journal journal_,
18 std::string const& method_,
19 Json::Value& params_,
20 Application& app_)
21 : journal(journal_)
22 , method(method_)
23 , params(params_)
24 , fee(Resource::feeReferenceRPC)
25 , app(app_)
26 {
27 }
28
29 // [in] The Journal for logging
31
32 // [in] The JSON-RPC method
34
35 // [in] The Ripple-specific "params" object
37
38 // [in, out] The resource cost for the command
40
41 // [out] The JSON-RPC response
43
44 // [in] The Application instance
46
47private:
48 Request&
50};
51
52} // namespace RPC
53} // namespace xrpl
Represents a JSON value.
Definition json_value.h:130
A generic endpoint for log messages.
Definition Journal.h:40
A consumption charge.
Definition Charge.h:10
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:5
Json::Value params
Definition Request.h:36
Application & app
Definition Request.h:45
Request & operator=(Request const &)
Request(beast::Journal journal_, std::string const &method_, Json::Value &params_, Application &app_)
Definition Request.h:16
std::string method
Definition Request.h:33
Resource::Charge fee
Definition Request.h:39
Json::Value result
Definition Request.h:42
beast::Journal const journal
Definition Request.h:30