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

# eth_chainId

> Returns the chain ID of the current connected node as described in EIP-695.

#### Path parameters

<ResponseField name="apiKey" type="string" required>
  Your API key for authentication
</ResponseField>

#### Request body

No parameters required.

<RequestExample>
  ```shellscript curl theme={null}
  curl https://site1.moralis-nodes.com/opbnb/:apiKey \
    -X POST \
    -H "Content-Type: application/json" \
    -d '{"jsonrpc": "2.0", "method": "eth_chainId", "params": [], "id": 1}'
  ```
</RequestExample>

<ResponseExample>
  ```json JSON theme={null}
  {
    "jsonrpc": "2.0",
    "id": 1,
    "result": "0x1"
  }
  ```
</ResponseExample>
