20#include <xrpld/app/ledger/LedgerToJson.h>
21#include <xrpld/rpc/detail/RPCHelpers.h>
23#include <xrpl/basics/strHex.h>
24#include <xrpl/ledger/ReadView.h>
25#include <xrpl/protocol/jss.h>
43 addRaw(lpLedger->info(), s);
48 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)