3#include "rpc/common/Types.hpp"
5#include <boost/json/conversion.hpp>
6#include <boost/json/value.hpp>
46 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:18
static Result process(Context const &ctx)
Process the Random command.
Definition Random.cpp:17
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:26
This namespace contains all the RPC logic and handlers.
Definition AMMHelpers.cpp:18
std::expected< OutputType, Status > HandlerReturnType
Return type for each individual handler.
Definition Types.hpp:62
Context of an RPC call.
Definition Types.hpp:99
A struct to hold the output data of the command.
Definition Random.hpp:23