Clio develop
The XRP Ledger API server.
|
The RPC subsystem is where the common framework for handling incoming JSON requests is implemented.
See the common subfolder.
FieldSpec
to make up the final RpcSpec
of any given RPC handler.See tests/unit/rpc for examples.
Handlers need to fulfil the requirements specified by the SomeHandler
concept (see rpc/common/Concepts.hpp
):
Input
- The POD struct which acts as input for the handlerOutput
- The POD struct which acts as output of a valid handler invocationspec(uint32_t)
member function returning a const reference to an RpcSpec
describing the JSON input for the specified API version.process(Input)
member function that operates on Input
POD and returns HandlerReturnType<Output>
value_from
and value_to
support using tag_invoke
as per boost::json
documentation for these functions.