POST
/
eth_chainId
curl --request POST \
  --url https://api.mainnet.abs.xyz/eth_chainId \
  --header 'Content-Type: application/json' \
  --data '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "eth_chainId",
  "params": []
}'
{
  "jsonrpc": "2.0",
  "result": "0x144",
  "id": 1
}

Body

application/json

Response

200 - application/json
Returns the chain ID in hexadecimal format

The response is of type object.