10 Compute Units.
Reference: Here
Parameters
None
Returns
chainId, hexadecimal value as a string representing the integer of the current chain id.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
10 Compute Units.
None
chainId, hexadecimal value as a string representing the integer of the current chain id.
// Result
{
"jsonrpc": "2.0",
"id": 0,
"result": "0xa5bf"
}
curl https://mainnet.arc.validationcloud.io/v1/<YOUR_API_KEY_HERE> \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"eth_chainId","params":[],"id":0}'
curl https://testnet.arc.validationcloud.io/v1/<YOUR_API_KEY_HERE> \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"eth_chainId","params":[],"id":0}'