# eth_chainId

> Returns the chain ID of the current network.

<SimplifiedApiReference
  method="eth_chainId"
  description="Returns the chain ID of the current network."
  parameters={[]}
  returns={{
    type: 'string',
    description: 'hex encoded unsigned integer',
  }}
  exampleRequest={`await provider.request({
    method: 'eth_chainId',
    params: [],
})`}
  exampleResponse={`{
    "id": 1,
    "jsonrpc": "2.0",
    "result": "0x1"
}`}
/>
