> ## Documentation Index
> Fetch the complete documentation index at: https://docs.chainstack.com/llms.txt
> Use this file to discover all available pages before exploring further.

# rpc_modules | Arc

> Arc API method that lists the JSON-RPC namespaces the node exposes and their versions. Use it on Arc via Chainstack.

Arc API method that lists the JSON-RPC namespaces the node exposes, each mapped to its interface version.

## Parameters

None.

## Response

* `result` — an object whose keys are the enabled namespaces and whose values are version strings. On a Chainstack Arc node this covers `eth`, `debug`, `trace`, `txpool`, `net`, `web3`, and `rpc`.

<Warning>
  The response is not a complete inventory of what the node serves. Arc's custom `arc_*` namespace is registered outside the standard module registry, so `arc_getVersion` and `arc_getCertificate` both work even though `arc` never appears here. See [Arc methods](/docs/arc-methods) for what is actually available.
</Warning>

## `rpc_modules` code examples

<CodeGroup>
  ```javascript ethers.js theme={"system"}
  const { JsonRpcProvider } = require("ethers");

  const provider = new JsonRpcProvider("CHAINSTACK_NODE_URL");

  async function call() {
    const result = await provider.send("rpc_modules", []);
    console.log(result);
  }

  call();
  ```

  ```python web3.py theme={"system"}
  from web3 import Web3

  node_url = "CHAINSTACK_NODE_URL"
  web3 = Web3(Web3.HTTPProvider(node_url))

  result = web3.provider.make_request("rpc_modules", [])
  print(result)
  ```

  ```shell cURL theme={"system"}
  curl -X POST "CHAINSTACK_NODE_URL" \
    -H "Content-Type: application/json" \
    --data '{
      "jsonrpc": "2.0",
      "method": "rpc_modules",
      "params": [],
      "id": 1
    }'
  ```
</CodeGroup>

## Use case

Client libraries sometimes call `rpc_modules` at startup to decide which features to enable. On Arc that check will under-report, so treat it as a floor rather than the full picture.


## OpenAPI

````yaml openapi/arc_node_api/chain_info/rpc_modules.json POST /
openapi: 3.0.0
info:
  title: Chainstack Node API
  version: 1.0.0
  description: This is an API for interacting with a Chainstack node.
servers:
  - url: https://arc-testnet.core.chainstack.com/6caa7fd90475ac9214f7521dd460fa7c
security: []
paths:
  /:
    post:
      tags:
        - upload
      summary: rpc_modules
      operationId: rpc_modules
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                id:
                  type: integer
                  default: 1
                jsonrpc:
                  type: string
                  default: '2.0'
                method:
                  type: string
                  default: rpc_modules
                params:
                  type: array
                  default: []
      responses:
        '200':
          description: Returns the result of rpc_modules.
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                  id:
                    type: integer
                  result:
                    type: object
                    properties:
                      txpool:
                        type: string
                      rpc:
                        type: string
                      net:
                        type: string
                      web3:
                        type: string
                      eth:
                        type: string
                      trace:
                        type: string
                      debug:
                        type: string
              example:
                jsonrpc: '2.0'
                id: 1
                result:
                  txpool: '1.0'
                  rpc: '1.0'
                  net: '1.0'
                  web3: '1.0'
                  eth: '1.0'
                  trace: '1.0'
                  debug: '1.0'

````