20#ifndef RIPPLE_RPC_HANDLERS_LEDGER_H_INCLUDED
21#define RIPPLE_RPC_HANDLERS_LEDGER_H_INCLUDED
23#include <xrpld/app/ledger/LedgerMaster.h>
24#include <xrpld/app/ledger/LedgerToJson.h>
25#include <xrpld/app/main/Application.h>
26#include <xrpld/ledger/ReadView.h>
27#include <xrpld/rpc/Context.h>
28#include <xrpld/rpc/Role.h>
29#include <xrpld/rpc/Status.h>
30#include <xrpld/rpc/detail/Handler.h>
31#include <xrpld/rpc/detail/RPCHelpers.h>
33#include <xrpl/json/Object.h>
34#include <xrpl/protocol/jss.h>
59 template <
class Object>
63 static constexpr char name[] =
"ledger";
87template <
class Object>
virtual LedgerMaster & getLedgerMaster()=0
static constexpr unsigned maxApiVer
static constexpr unsigned minApiVer
std::shared_ptr< ReadView const > ledger_
static constexpr char name[]
void writeResult(Object &)
std::vector< TxQ::TxDetails > queueTxs_
static constexpr Role role
JSON (JavaScript Object Notation).
Json::Value & addObject(Json::Value &, Json::StaticString const &key)
Add a new subobject at a named key in a Json object.
void copyFrom(Json::Value &to, Json::Value const &from)
Copy all the keys and values from one object into another.
static constexpr auto apiMaximumValidVersion
static constexpr auto apiMinimumSupportedVersion
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
void addJson(Json::Value &json, LedgerFill const &fill)
Given a Ledger and options, fill a Json::Object or Json::Value with a description of the ledger.
@ open
We haven't closed our ledger yet, but others might have.
LedgerEntryType
Identifiers for on-ledger objects.
Role
Indicates the level of administrative permission to grant.
Status represents the results of an operation that might fail.