20 #include <ripple/app/ledger/LedgerToJson.h>
21 #include <ripple/basics/strHex.h>
22 #include <ripple/ledger/ReadView.h>
23 #include <ripple/protocol/jss.h>
24 #include <ripple/rpc/impl/RPCHelpers.h>
47 addJson(jvResult, {*lpLedger, &context, 0});
virtual LedgerInfo const & info() const =0
Returns information about the ledger.
void addRaw(LedgerInfo const &info, Serializer &s, bool includeHash)
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.
Blob const & peekData() const
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 &)