Skip to main content

net_version

Returns the current network ID. This is usually equivalent to the chainID, but may differ from it for some legacy networks or special testnets.

Parameters (by position)

This method does not accept any parameters.

Result

Network ID string

decimal unsigned integer string

Match pattern: ^[1-9][0-9]*$


Examples

net_version example

Request

{
"params": []
}

Response

"1"