net_version

Returns the network ID that the client is connected to.

Path parameters

apiKeystringRequired

Response

The network ID as a string. Common IDs are "1" for mainnet, "3" for Ropsten, etc.