EVM RPC API
eth_chainId
Returns the current ethereum chainId.
Parameters
None
Returns
QUANTITY
- The current chainId
POST
https://{network}.s.chainbase.online/v1
/
{api-key}
Path Parameters
api-key
string
requiredBody
application/json
id
integer
default: 1requiredjsonrpc
string
default: 2.0requiredmethod
string
default: eth_chainIdrequiredparams
any[]
requiredResponse
200 - application/json
id
integer
requiredjsonrpc
string
requiredresult
string
required