eth_chainId

Returns the chain ID of the current network as a hexadecimal string.

⚠ This endpoint is only available with Blast access.

Path parameters

apiKeystringRequired

Response

The chain ID of the current network in hexadecimal format.