> For the complete documentation index, see [llms.txt](https://docs.omniatech.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.omniatech.io/rpc-api-docs/chains/base/standard-json-rpc-api/eth_chainid.md).

# eth\_chainId

**Returns the chain ID used for signing replay-protected transactions.**\
\
Note: for browsing Ethereum chain IDs, one can use [chainlist.org](https://chainlist.org)

[**Ethereum.org API Reference**](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_chainid)

**Parameters**

`None`

**Returns**

`chainId`, hexadecimal value as a string representing the integer of the current chain id.

## Example

#### Request

```
curl --request POST \
     --url https://endpoints.omniatech.io/v1/RPC_ENDPOINT \
     --header 'accept: application/json' \
     --header 'content-type: application/json' \
     --data '
{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "eth_chainId"
}
'
```

#### Response

```
{
  "id":1,
  "jsonrpc": "2.0",
  "result": "0x1"
}
```
