net_version
POST/
Returns the network ID of the connected Ethereum network. The network ID is used to distinguish between different Ethereum networks (e.g., mainnet, testnet). For example, Ethereum mainnet has network ID 1, Ropsten testnet has 3, and Rinkeby testnet has 4. This method is primarily used to identify the network and verify that an application is connected to the correct network.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 405
- 408
- 409
- 413
- 414
- 429
- 500
- 503
Successful Response
Bad Request
Unauthorized
Forbidden
Not Found
Method Not Allowed
Request Timeout
Conflict
Payload Too Large
URI Too Long
Too Many Requests
Internal Server Error
Service Unavailable