> ## 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.

# eth_chainId | Ronin

> The eth_chainId method is a simple RPC call that returns the chain ID of the currently connected Ronin network. Ronin via Chainstack.

The `eth_chainId` method is a simple RPC call that returns the chain ID of the currently connected Ronin network. The chain ID is a critical value used in the EIP-155 standard to prevent replay attacks across different Ethereum networks.

## Parameters

* None

## Response

* `result` - The chain ID of the current network, returned as a hexadecimal number.

## Use case

Knowing the chain ID is essential for developers when signing transactions, as it ensures that signed transactions are only valid on the intended network. This method provides a straightforward way to programmatically determine the network's chain ID, which is especially useful in applications that operate across multiple Ronin networks.


## OpenAPI

````yaml openapi/ronin_node_api/eth_chainId.json POST /3997273fc956a67dc6982384500e669e
openapi: 3.0.0
info:
  title: eth_chainId
  version: 1.0.0
  description: Returns the currently configured chain ID.
servers:
  - url: https://ronin-mainnet.core.chainstack.com
security: []
paths:
  /3997273fc956a67dc6982384500e669e:
    post:
      tags:
        - blockchain
      summary: Get current chain ID
      operationId: getChainId
      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: eth_chainId
                params:
                  type: array
                  default: []
      responses:
        '200':
          description: The chain ID of the current network
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                  id:
                    type: integer
                  result:
                    type: string

````