1#include <xrpl/protocol/LedgerHeader.h>
3#include <xrpld/app/ledger/LedgerToJson.h>
4#include <xrpld/rpc/detail/RPCLedgerHelpers.h>
6#include <xrpl/basics/strHex.h>
7#include <xrpl/json/json_value.h>
8#include <xrpl/ledger/ReadView.h>
9#include <xrpl/protocol/Serializer.h>
10#include <xrpl/protocol/jss.h>
30 addRaw(lpLedger->header(), s);
35 addJson(jvResult, {*lpLedger, &context, 0});
Blob const & peekData() const
Status lookupLedger(std::shared_ptr< ReadView const > &ledger, JsonContext const &context, json::Value &result)
Looks up a ledger from a request and fills a json::Value with ledger data.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
std::string strHex(FwdIt begin, FwdIt end)
void addJson(json::Value &json, LedgerFill const &fill)
Given a Ledger and options, fill a json::Value with a description of the ledger.
void addRaw(LedgerHeader const &, Serializer &, bool includeHash=false)
json::Value doLedgerHeader(RPC::JsonContext &)