API Reference

eth_chainId

Returns the chain ID of the current network. Ethereum Mainnet has a chain ID of 1. The value is used in replay-protected transaction signing as introduced by EIP-155.

Request Parameters

None

Response

Returns the chain ID of the current network.

Examples

Example Responses
{
    "jsonrpc": "2.0",
    "id": 1,
    "result": "0x1"
}
Language
Click Try It! to start a request and see the response here!