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

The random command provides a random number to be used as a source of entropy for random number generation by clients. More...

#include <Random.hpp>

Classes

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

Public Types

using Result = HandlerReturnType<Output>
 

Static Public Member Functions

static Result process (Context const &ctx)
 Process the Random command.
 

Friends

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

Detailed Description

The random command provides a random number to be used as a source of entropy for random number generation by clients.

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

Member Function Documentation

◆ process()

RandomHandler::Result rpc::RandomHandler::process ( Context const & ctx)
static

Process the Random command.

Parameters
ctxThe context of the request
Returns
The result of the operation

Friends And Related Symbol Documentation

◆ tag_invoke

void tag_invoke ( boost::json::value_from_tag ,
boost::json::value & jv,
RandomHandler::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: