Version API¶
-
class
web3.version.Version¶
The web3.version object exposes methods to interact with the RPC APIs under
the version_ namespace.
Properties¶
The following properties are available on the web3.eth namespace.
-
Version.api(self)¶ Returns the current Web3 version.
>>> web3.version.api "2.6.0"
-
Version.node(self)¶ - Delegates to
web3_clientVersionRPC Method
Returns the current client version.
>>> web3.version.node 'Geth/v1.4.11-stable-fed692f6/darwin/go1.7'
- Delegates to
-
Version.network(self)¶ - Delegates to
net_versionRPC Method
Returns the current network protocol version.
>>> web3.version.network 1
- Delegates to
-
Version.ethereum(self)¶ - Delegates to
eth_protocolVersionRPC Method
Returns the current ethereum protocol version.
>>> web3.version.ethereum 63
- Delegates to