For the complete documentation index, see llms.txt. This page is also available as Markdown.

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