1#include <xrpld/app/ledger/LedgerToJson.h>
2#include <xrpld/rpc/detail/RPCLedgerHelpers.h>
4#include <xrpl/basics/strHex.h>
5#include <xrpl/ledger/ReadView.h>
6#include <xrpl/protocol/jss.h>
24 addRaw(lpLedger->info(), s);
29 addJson(jvResult, {*lpLedger, &context, 0});
Blob const & peekData() const
Status lookupLedger(std::shared_ptr< ReadView const > &ledger, JsonContext &context, Json::Value &result)
Look up a ledger from a request and fill a Json::Result with the data representing a ledger.
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.
std::string strHex(FwdIt begin, FwdIt end)
Json::Value doLedgerHeader(RPC::JsonContext &)
void addRaw(LedgerHeader const &, Serializer &, bool includeHash=false)