Skip to main content

net_version

Returns the current network ID on Immutable.

Parameters#

This method accepts no parameters.

Request#

{
"jsonrpc": "2.0",
"method": "net_version",
"params": [],
"id": 1
}

Returns#

TypeDescription
StringNetwork ID as a string

Code Examples#

curl -X POST https://api-immutable-zkevm-mainnet.n.dwellir.com/YOUR_API_KEY \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "net_version",
"params": [],
"id": 1
}'