rpc

The rpc namespace provides endpoints for retrieving information about the node's JSON-RPC server itself. These endpoints let you query the list of available modules and their versions, giving you insight into the RPC capabilities exposed by your R5 node.


rpc_modules

Description: Returns an object containing all available RPC modules along with their versions. This endpoint is useful for confirming which namespaces and functionalities are enabled on your node.

Sample Request:

{
  "jsonrpc": "2.0",
  "method": "rpc_modules",
  "params": [],
  "id": 1
}

Expected Response:

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "admin": "1.0",
    "eth": "1.0",
    "net": "1.0",
    "web3": "1.0",
    "txpool": "1.0",
    "debug": "1.0",
    "engine": "1.0",
    "ethash": "1.0",
    "rpc": "1.0"
  }
}

Parameters: None.

Last updated