net_version

Returns the network ID that the client is connected to.

Path parameters

apiKeystringRequiredDefaults to docs-demo

Response

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