net_version
Returns the current network id.
Parameters:
None
Returns:
String - The current network id.
Example:
// Request
curl https://ethereum.blockpi.network/v1/rpc/your-rpc-key -X POST -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"net_version","params":[],"id":83}'
// Result
{
"jsonrpc": "2.0",
"id": 83,
"result": "1"
}
Last updated
Was this helpful?