|
xrpld
|
Handles the ledger RPC method. More...
#include <Ledger.h>


Classes | |
| struct | Output |
| The data a ledger request produces, written out by writeResult(). More... | |
Public Member Functions | |
| LedgerHandler (JsonContext &context) | |
| Construct a handler for a single request. | |
| std::expected< Output, ::rpc::Status > | process (Input const &input) |
| Process the request. | |
| void | writeResult (json::Value &value, Output const &output) const |
| Write the output of process() into the response. | |
Private Attributes | |
| std::reference_wrapper< JsonContext > | context_ |
Handles the ledger RPC method.
The request is parsed by ::rpc::spec::handlers::ledger.
Definition at line 34 of file src/xrpld/rpc/handlers/ledger/Ledger.h.
|
explicit |
Construct a handler for a single request.
| context | The context of the request being handled. |
Definition at line 39 of file xrpld/rpc/handlers/ledger/Ledger.cpp.
|
nodiscard |
Process the request.
| input | The request, parsed and validated by the spec. |
Definition at line 44 of file xrpld/rpc/handlers/ledger/Ledger.cpp.
| void xrpl::rpc::LedgerHandler::writeResult | ( | json::Value & | value, |
| Output const & | output ) const |
Write the output of process() into the response.
| value | The response to write into. |
| output | The output process() returned. |
Definition at line 89 of file xrpld/rpc/handlers/ledger/Ledger.cpp.
|
private |
Definition at line 73 of file src/xrpld/rpc/handlers/ledger/Ledger.h.