Clio develop
The XRP Ledger API server.
|
The ledger_range command returns the index number of the earliest and latest ledgers that the server has. More...
#include <LedgerRange.hpp>
Classes | |
struct | Output |
A struct to hold the output data of the command. More... | |
Public Types | |
using | Result = HandlerReturnType<Output> |
Public Member Functions | |
LedgerRangeHandler (std::shared_ptr< BackendInterface > const &sharedPtrBackend) | |
Construct a new LedgerRangeHandler object. | |
Result | process (Context const &ctx) const |
Process the LedgerRange command. | |
Friends | |
void | tag_invoke (boost::json::value_from_tag, boost::json::value &jv, LedgerRangeHandler::Output const &output) |
Convert the Output to a JSON object. | |
The ledger_range command returns the index number of the earliest and latest ledgers that the server has.
Not documented in the official rippled API docs.
|
inline |
Construct a new LedgerRangeHandler object.
sharedPtrBackend | The backend to use |
LedgerRangeHandler::Result rpc::LedgerRangeHandler::process | ( | Context const & | ctx | ) | const |
Process the LedgerRange command.
ctx | The context of the request |
|
friend |
Convert the Output to a JSON object.
[out] | jv | The JSON object to convert to |
output | The output to convert |