Skip to main content

net_version

Get network ID on the Mantle Network.

Parameters#

None

Returns#

String - The current network id:

  • "5000" for Mantle mainnet
  • "5001" for Mantle testnet

Implementation Example#

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

Response Example#

{
"jsonrpc": "2.0",
"id": 1,
"result": "5000"
}

Need help? Contact our support team or check the Mantle documentation.