Skip to main content

getProtocolVersion

Callable

  • getProtocolVersion(web3Context: Web3Context<EthExecutionAPI, any>): Promise<string>

  • Parameters

    • web3Context: Web3Context<EthExecutionAPI, any>

      (Web3Context) Web3 configuration object that contains things such as the provider, request manager, wallet, etc.

    Returns Promise<string>

    Returns the ethereum protocol version of the node.

    web3.eth.getProtocolVersion().then(console.log);
    > "63"