22#include "rpc/common/Types.hpp"
24#include <boost/json/conversion.hpp>
25#include <boost/json/value.hpp>
65 tag_invoke(boost::json::value_from_tag, boost::json::value& jv,
Output const& output);
The random command provides a random number to be used as a source of entropy for random number gener...
Definition Random.hpp:37
static Result process(Context const &ctx)
Process the Random command.
Definition Random.cpp:36
friend void tag_invoke(boost::json::value_from_tag, boost::json::value &jv, Output const &output)
Convert the Output to a JSON object.
Definition Random.cpp:45
This namespace contains all the RPC logic and handlers.
Definition AMMHelpers.cpp:36
std::expected< OutputType, Status > HandlerReturnType
Return type for each individual handler.
Definition Types.hpp:81
Context of an RPC call.
Definition Types.hpp:118
A struct to hold the output data of the command.
Definition Random.hpp:42