Clio  develop
The XRP Ledger API server.
Loading...
Searching...
No Matches
rpc::LedgerEntryHandler Class Reference

The ledger_entry method returns a single ledger object from the XRP Ledger in its raw format. More...

#include <LedgerEntry.hpp>

Inheritance diagram for rpc::LedgerEntryHandler:
Collaboration diagram for rpc::LedgerEntryHandler:

Classes

struct  Output
 A struct to hold the output data of the command. More...

Public Types

using Result = HandlerReturnType<Output>

Public Member Functions

 LedgerEntryHandler (std::shared_ptr< BackendInterface > sharedPtrBackend)
 Construct a new LedgerEntryHandler object.
Result process (Input const &input, Context const &ctx) const
 Process the LedgerEntry command.

Friends

void tag_invoke (boost::json::value_from_tag, boost::json::value &jv, LedgerEntryHandler::Output const &output)
 Convert the Output to a JSON object.

Detailed Description

The ledger_entry method returns a single ledger object from the XRP Ledger in its raw format.

For more details see: https://xrpl.org/ledger_entry.html

Constructor & Destructor Documentation

◆ LedgerEntryHandler()

rpc::LedgerEntryHandler::LedgerEntryHandler ( std::shared_ptr< BackendInterface > sharedPtrBackend)
inline

Construct a new LedgerEntryHandler object.

Parameters
sharedPtrBackendThe backend to use

Member Function Documentation

◆ process()

LedgerEntryHandler::Result rpc::LedgerEntryHandler::process ( Input const & input,
Context const & ctx ) const
nodiscard

Process the LedgerEntry command.

Parameters
inputThe input data for the command
ctxThe context of the request
Returns
The result of the operation

◆ tag_invoke

void tag_invoke ( boost::json::value_from_tag ,
boost::json::value & jv,
LedgerEntryHandler::Output const & output )
friend

Convert the Output to a JSON object.

Parameters
[out]jvThe JSON object to convert to
outputThe output to convert

The documentation for this class was generated from the following files:
  • /__w/clio/clio/src/rpc/handlers/LedgerEntry.hpp
  • /__w/clio/clio/src/rpc/handlers/LedgerEntry.cpp