curl --request POST \
--url https://hyperliquid-mainnet.core.chainstack.com/4f8d8f4040bdacd1577bff8058438274/evm \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"method": "net_version",
"params": [],
"id": 1
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": "999"
}
Returns the current network ID. This method is used to identify which Ethereum network the client is connected to.
curl --request POST \
--url https://hyperliquid-mainnet.core.chainstack.com/4f8d8f4040bdacd1577bff8058438274/evm \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"method": "net_version",
"params": [],
"id": 1
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": "999"
}
"999"
.
curl -X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"net_version","params":[],"id":1}' \
https://hyperliquid-mainnet.core.chainstack.com/4f8d8f4040bdacd1577bff8058438274/evm
{"jsonrpc":"2.0","id":1,"result":"999"}
Successful response with network ID
The response is of type object
.