POSTeth_chainId

Polygon Mainnethttps://polygon-mainnet.nodit.io/

Returns the chain ID of the network the node is connected to as a hexadecimal string. The chain ID is the network identifier defined in EIP-155, used for transaction signing to prevent replay attacks.

Request Body
idintegerrequired
jsonrpcstringrequired
methodstringrequired
Responses

No response body.

X-API-KEY
RequestCU0
cURL
curl -X POST "https://polygon-mainnet.nodit.io/" \
  -H "X-API-KEY: {YOUR_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{
    "id": 1,
    "jsonrpc": "2.0",
    "method": "eth_chainId"
  }'
Response
Example · 200
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "0x1"
}