API Reference

eth_chainId

Returns the chain ID of the current network. Polygon Mainnet has a chain ID of 137. 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": "0x89"
}
Language
Click Try It! to start a request and see the response here!