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(beast::Journal journal_, std::string const& method_, Json::Value& params_, Application& app_)
17 : journal(journal_), method(method_), params(params_), fee(Resource::feeReferenceRPC), app(app_)
18 {
19 }
20
21 // [in] The Journal for logging
23
24 // [in] The JSON-RPC method
26
27 // [in] The Ripple-specific "params" object
29
30 // [in, out] The resource cost for the command
32
33 // [out] The JSON-RPC response
35
36 // [in] The Application instance
38
39private:
40 Request&
42};
43
44} // namespace RPC
45} // 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:28
Application & app
Definition Request.h:37
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:25
Resource::Charge fee
Definition Request.h:31
Json::Value result
Definition Request.h:34
beast::Journal const journal
Definition Request.h:22