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

The nft_history command asks the Clio server for past transaction metadata for the NFT being queried. More...

#include <NFTHistory.hpp>

Inheritance diagram for rpc::NFTHistoryHandler:
Collaboration diagram for rpc::NFTHistoryHandler:

Classes

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

Public Types

using Marker = rpc::spec::handlers::nft_history::Marker
 A struct to hold the marker data.
using Result = HandlerReturnType<Output>

Public Member Functions

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

Static Public Attributes

static constexpr auto kLimitMin = rpc::spec::handlers::nft_history::kLimitMin
static constexpr auto kLimitMax = rpc::spec::handlers::nft_history::kLimitMax
static constexpr auto kLimitDefault = rpc::spec::handlers::nft_history::kLimitDefault

Friends

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

Detailed Description

The nft_history command asks the Clio server for past transaction metadata for the NFT being queried.

For more details see: https://xrpl.org/nft_history.html#nft_history

Constructor & Destructor Documentation

◆ NFTHistoryHandler()

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

Construct a new NFTHistoryHandler object.

Parameters
sharedPtrBackendThe backend to use

Member Function Documentation

◆ process()

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

Process the NFTHistory 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,
NFTHistoryHandler::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/NFTHistory.hpp
  • /__w/clio/clio/src/rpc/handlers/NFTHistory.cpp