⚡ Test Our Private Nodes of 40+ Blockchains just for $50!

coins coins coins coins
avax

Avalanche (AVAX)

Method: POST net_version

dropdown
POST

net_version

Returns the current network id.

Parameters

-

Request

curl --location --request POST 'https://avax.getblock.io/mainnet/ext/bc/C/rpc' \
--header 'x-api-key: YOUR-API-KEY' \
--header 'Content-Type: application/json' \
--data-raw '{"jsonrpc": "2.0",
"method": "net_version",
"params": [],
"id": "getblock.io"}'


Response

{
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": "43114"
}