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

The account_mptokens method returns information about the MPTokens the account currently holds. More...

#include <AccountMPTokens.hpp>

Inheritance diagram for rpc::AccountMPTokensHandler:
Collaboration diagram for rpc::AccountMPTokensHandler:

Classes

struct  MPTokenResponse
 A struct to hold data for one MPToken response. More...
struct  Output
 A struct to hold the output data of the command. More...

Public Types

using Result = HandlerReturnType<Output>

Public Member Functions

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

Static Public Attributes

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

Friends

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

Detailed Description

The account_mptokens method returns information about the MPTokens the account currently holds.

Constructor & Destructor Documentation

◆ AccountMPTokensHandler()

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

Construct a new AccountMPTokensHandler object.

Parameters
sharedPtrBackendThe backend to use.

Member Function Documentation

◆ process()

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

Process the AccountMPTokens command.

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

◆ tag_invoke [1/2]

void tag_invoke ( boost::json::value_from_tag ,
boost::json::value & jv,
AccountMPTokensHandler::MPTokenResponse const & mptoken )
friend

Convert the MPTokenResponse to a JSON object.

Parameters
[out]jvThe JSON object to convert to
mptokenThe MPToken response to convert

◆ tag_invoke [2/2]

void tag_invoke ( boost::json::value_from_tag ,
boost::json::value & jv,
AccountMPTokensHandler::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/AccountMPTokens.hpp
  • /__w/clio/clio/src/rpc/handlers/AccountMPTokens.cpp