Docs

rpc_modules - Robinhood RPC Method

Inspect which JSON-RPC namespaces are enabled on your Robinhood Chain endpoint. Useful for capability checks, client diagnostics, and RPC feature discovery.

Returns the enabled JSON-RPC namespaces exposed by the connected Robinhood Chain endpoint together with their version strings.

Non-standard method. rpc_modules is a client-introspection RPC that is commonly available on Geth-compatible stacks, but it is not part of the core Ethereum Execution API method set. Availability varies by client and operator policy.

Why Robinhood? Build on an Ethereum-compatible Layer 2 built with Arbitrum Nitro for tokenized real-world assets with Arbitrum Nitro compatibility, ETH gas, sub-second soft confirmations, archive history, and WebSocket access.

When to Use This Method

rpc_modules is useful for Robinhood Chain developers, financial application teams, and EVM builders:

  • Capability Discovery - Detect whether namespaces like debug, trace, txpool, or erigon are exposed before attempting those calls
  • Client Diagnostics - Verify what the serving node has enabled when debugging environment-specific issues
  • Infrastructure Audits - Compare public and private endpoints to confirm which RPC surfaces are intentionally exposed
  • Runtime Feature Gating - Adjust tooling behavior dynamically based on the actual namespaces available on a node

Best Practices

  • Call at startup to determine which features are available on a node
  • Module availability varies by node client and provider configuration
  • Use to gate feature access in applications before attempting unsupported calls
  • This is a non-standard method; some endpoints may not expose it

Code Examples

Error Handling

Error CodeMessageDescription
-32601Method not foundThe client or endpoint does not expose rpc_modules
-32603Internal errorThe node rejected or failed to process the request