Skip to main content

net_version

Returns the current network id on Avalanche C-Chain.

Parameters#

This method accepts no parameters.

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

Returns#

String - The current network id.

Implementation Example#

curl -X POST https://api-avalanche-mainnet-archive.n.dwellir.com/YOUR_API_KEY/ext/bc/C/rpc \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "net_version",
"params": [],
"id": 67
}'

Response Example#

{
"id": 67,
"jsonrpc": "2.0",
"result": "43114"
}

Note: Network ID 43114 identifies the Avalanche C-Chain mainnet.


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