# 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"
}
```
