rippled
Loading...
Searching...
No Matches
LedgerToJson.h
1#ifndef XRPL_APP_LEDGER_LEDGERTOJSON_H_INCLUDED
2#define XRPL_APP_LEDGER_LEDGERTOJSON_H_INCLUDED
3
4#include <xrpld/app/ledger/Ledger.h>
5#include <xrpld/app/ledger/LedgerMaster.h>
6#include <xrpld/app/misc/TxQ.h>
7#include <xrpld/rpc/Context.h>
8
9#include <xrpl/basics/chrono.h>
10#include <xrpl/json/Object.h>
11#include <xrpl/protocol/serialize.h>
12
13namespace ripple {
14
44
49void
51
54getJson(LedgerFill const&);
55
56} // namespace ripple
57
58#endif
Represents a JSON value.
Definition json_value.h:130
std::optional< NetClock::time_point > getCloseTimeBySeq(LedgerIndex ledgerIndex)
A view into a ledger.
Definition ReadView.h:32
LedgerIndex seq() const
Returns the sequence number of the base ledger.
Definition ReadView.h:99
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
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.
Json::Value getJson(LedgerFill const &fill)
Return a new Json::Value representing the ledger with given options.
STL namespace.
ReadView const & ledger
std::vector< TxQ::TxDetails > txQueue
LedgerFill(ReadView const &l, RPC::Context *ctx, int o=0, std::vector< TxQ::TxDetails > q={})
RPC::Context * context
std::optional< NetClock::time_point > closeTime
The context of information needed to call an RPC.
Definition Context.h:20
LedgerMaster & ledgerMaster
Definition Context.h:25