Skip to main content

net_version

Returns the current network ID.


Method

  • JSON-RPC method name: net_version
  • JSON-RPC version: 2.0

Parameters

This method does not accept any parameters.

Result

  • Name: net_version
  • Description: Returns the current network ID.
  • Type: string

Result schema

{
"type": "string"
}

Errors

This method may return JSON-RPC standard errors (e.g. -32600, -32601, -32602, -32603) as well as application-specific errors.

TODO: Document method-specific error codes and conditions.