OpenRPC¶
TLDR
The rpc.discover method returns an API service description structured per the OpenRPC specification.
Discovery¶
Core-Geth supports OpenRPC’s Service Discovery method, enabling efficient and well-spec’d JSON RPC interfacing and tooling. This method follows the established JSON RPC patterns, and is accessible via HTTP, WebSocket, IPC, and console servers. It answers as rpc.discover or rpc_discover. To use this method over HTTP, on a node started with --http:
Example
1 | |
An excerpt of the response from a v1.13 node, formatted for reading, with [...] marking what is left out:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | |
The namespace pages in this section
The namespace pages in this section are generated from the client’s discovery document.