rippled
Loading...
Searching...
No Matches
xrpld
rpc
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
8
namespace
xrpl
{
9
10
class
Application;
11
12
namespace
RPC {
13
14
struct
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
30
beast::Journal
const
journal
;
31
32
// [in] The JSON-RPC method
33
std::string
method
;
34
35
// [in] The Ripple-specific "params" object
36
Json::Value
params
;
37
38
// [in, out] The resource cost for the command
39
Resource::Charge
fee
;
40
41
// [out] The JSON-RPC response
42
Json::Value
result
;
43
44
// [in] The Application instance
45
Application
&
app
;
46
47
private
:
48
Request
&
49
operator=
(
Request
const
&);
50
};
51
52
}
// namespace RPC
53
}
// namespace xrpl
std::string
Json::Value
Represents a JSON value.
Definition
json_value.h:130
beast::Journal
A generic endpoint for log messages.
Definition
Journal.h:40
xrpl::Application
Definition
Application.h:95
xrpl::Resource::Charge
A consumption charge.
Definition
Charge.h:10
xrpl
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition
algorithm.h:5
xrpl::RPC::Request
Definition
Request.h:15
xrpl::RPC::Request::params
Json::Value params
Definition
Request.h:36
xrpl::RPC::Request::app
Application & app
Definition
Request.h:45
xrpl::RPC::Request::operator=
Request & operator=(Request const &)
xrpl::RPC::Request::Request
Request(beast::Journal journal_, std::string const &method_, Json::Value ¶ms_, Application &app_)
Definition
Request.h:16
xrpl::RPC::Request::method
std::string method
Definition
Request.h:33
xrpl::RPC::Request::fee
Resource::Charge fee
Definition
Request.h:39
xrpl::RPC::Request::result
Json::Value result
Definition
Request.h:42
xrpl::RPC::Request::journal
beast::Journal const journal
Definition
Request.h:30
Generated by
1.9.8