|
Clio
develop
The XRP Ledger API server.
|
The ledger_index method fetches the latest closed ledger before the given date. More...
#include <LedgerIndex.hpp>


Classes | |
| struct | Output |
| A struct to hold the output data of the command. More... | |
Public Types | |
| using | Result = HandlerReturnType<Output> |
| The result type of the command: either the Output or an error status. | |
Public Member Functions | |
| LedgerIndexHandler (std::shared_ptr< BackendInterface > sharedPtrBackend) | |
| Construct a new LedgerIndexHandler object. | |
| Result | process (Input const &input, Context const &ctx) const |
| Process the LedgerIndex command. | |
Friends | |
| void | tag_invoke (boost::json::value_from_tag, boost::json::value &jv, LedgerIndexHandler::Output const &output) |
| Convert the Output to a JSON object. | |
The ledger_index method fetches the latest closed ledger before the given date.
|
inline |
Construct a new LedgerIndexHandler object.
| sharedPtrBackend | The backend to use |
|
nodiscard |
Process the LedgerIndex command.
| input | The input data for the 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 |