net_version
Returns the current network id.
Parameters:
None
Returned Value:
String
- The current network id.
{
"id":67,
"jsonrpc": "2.0",
"result": "0x128"
}
curl https://mainnet.hedera.validationcloud.io/v1/<YOUR_API_KEY_HERE> \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"net_version","params":[],"id":67}'
curl https://testnet.hedera.validationcloud.io/v1/<YOUR_API_KEY_HERE> \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"net_version","params":[],"id":67}'