Portal
Search…
eth_protocolVersion
Returns protocol version encoded as a string
1
web3.eth.getProtocolVersion([callback])
Copied!

Returns

Promise returns String: the protocol version.

Example

1
> web3.eth.getProtocolVersion().then(console.log)
2
> 1
Copied!
Last modified 9mo ago
Copy link