Net_version

net_version

post

Returns the current network ID of the Ethereum client.

Authorizations
api-keystringRequired
Body
jsonrpcstringRequiredExample: 2.0
methodstring · enumRequiredExample: net_versionPossible values:
paramsarrayRequired

This method takes no parameters.

idintegerRequiredExample: 1
Responses
chevron-right
200

JSON-RPC response with the current network ID

application/json
jsonrpcstringRequiredExample: 2.0
idintegerRequiredExample: 1
resultstringRequired

The network ID as a decimal string.

Example: 1
post
/
200

JSON-RPC response with the current network ID

Last updated