eth_protocolVersion

Returns protocol version encoded as a string

web3.eth.getProtocolVersion([callback])

Returns

Promise returns String: the protocol version.

Example

> web3.eth.getProtocolVersion().then(console.log)
> 1

Last updated