web3.net.
Net
The web3.net object exposes methods to interact with the RPC APIs under the net_ namespace.
web3.net
net_
The following properties are available on the web3.net namespace.
Net.
chainId
This method is deprecated as of EIP 1474.
version
net_version
Returns the current network chainId/version.
>>> web3.net.version 1