It would be nice if the JSON-RPC were self-documenting, so we had a constant endpoint to query if we wanted to know which methods are available on an xps server.
Describe the solution to the problem
We could have an endpoint, rpc_methods which listed all the methods available on the RPC node.
I did something exactly like this in an example in didethresolverhere
We basically merge in a rpc_methods endpoint after converting all our method names to a string. Very useful for on-the-fly checking, instead of opening up the docs
Is your feature request related to a problem?
It would be nice if the JSON-RPC were self-documenting, so we had a constant endpoint to query if we wanted to know which methods are available on an
xps
server.Describe the solution to the problem
We could have an endpoint,
rpc_methods
which listed all the methods available on the RPC node.I did something exactly like this in an example in
didethresolver
hereWe basically merge in a
rpc_methods
endpoint after converting all our method names to a string. Very useful for on-the-fly checking, instead of opening up the docs