|
Clio
develop
The XRP Ledger API server.
|
The account_mptokens method returns information about the MPTokens the account currently holds. More...
#include <AccountMPTokens.hpp>
Classes | |
| struct | Input |
| A struct to hold the input data for the command. More... | |
| 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 Member Functions | |
| static RpcSpecConstRef | spec (uint32_t apiVersion) |
| Returns the API specification for the command. | |
Static Public Attributes | |
| static constexpr auto | kLIMIT_MIN = 10 |
| static constexpr auto | kLIMIT_MAX = 400 |
| static constexpr auto | kLIMIT_DEFAULT = 200 |
Friends | |
| void | tag_invoke (boost::json::value_from_tag, boost::json::value &jv, AccountMPTokensHandler::Output const &output) |
| Convert the Output to a JSON object. | |
| Input | tag_invoke (boost::json::value_to_tag< Input >, boost::json::value const &jv) |
| Convert a JSON object to Input type. | |
| void | tag_invoke (boost::json::value_from_tag, boost::json::value &jv, AccountMPTokensHandler::MPTokenResponse const &mptoken) |
| Convert the MPTokenResponse to a JSON object. | |
The account_mptokens method returns information about the MPTokens the account currently holds.
|
inline |
Construct a new AccountMPTokensHandler object.
| sharedPtrBackend | The backend to use. |
| AccountMPTokensHandler::Result rpc::AccountMPTokensHandler::process | ( | AccountMPTokensHandler::Input const & | input, |
| Context const & | ctx ) const |
Process the AccountMPTokens command.
| input | The input data for the command. |
| ctx | The context of the request. |
|
inlinestatic |
Returns the API specification for the command.
| apiVersion | The API version to return the spec for. |
|
friend |
Convert the MPTokenResponse to a JSON object.
| [out] | jv | The JSON object to convert to |
| mptoken | The MPToken response to convert |
|
friend |
Convert the Output to a JSON object.
| [out] | jv | The JSON object to convert to |
| output | The output to convert |