Contents

eth_chainId RPC method

Parameters:

  1. None

Returns:

  1. Quantity - EIP155 Chain ID.

Code Examples:

curl http://sample-endpoint-name.network.quiknode.pro/token-goes-here/ \
  -X POST \
  -H "Content-Type: application/json" \
  --data '{"method":"eth_chainId","params":[],"id":1,"jsonrpc":"2.0"}'
Ready to try QuickNode? Start your 7-day free trial