Skip to main content
Returns the chain ID of the current network per EIP-695.

Parameters

No parameters.

Returns

result
string
The chain ID as a hexadecimal string. "0x2105" (8453) for Base Mainnet, "0x14a34" (84532) for Base Sepolia.

Example

{
  "jsonrpc": "2.0",
  "method": "eth_chainId",
  "params": [],
  "id": 1
}