POSTklay_chainID

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

Request Body
idintegerrequired
jsonrpcstringrequired
methodstringrequired
Responses

응답 본문이 없습니다.

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