Returns the current network id.
None
String - The current network id.
String
{ "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}'
Last updated 8 months ago