cURL
curl --request POST \ --url https://{network}.s.chainbase.online/v1/{api-key} \ --header 'Content-Type: application/json' \ --data '{ "id": 1, "jsonrpc": "2.0", "method": "eth_chainId", "params": [] }'
{ "id": 1, "jsonrpc": "2.0", "result": "<string>" }
Returns the current ethereum chainId.
Parameters
None
Returns
QUANTITY
"demo"
1
"2.0"
Successful Response