Contents

eth_protocolVersion RPC method

Parameters:

  1. None

Returns:

  1. Result - Current Ethereum protocol version in string format.

Code Examples:

const ethers = require("ethers");
(async () => {
  const provider = new ethers.providers.JsonRpcProvider("http://sample-endpoint-name.network.quiknode.pro/token-goes-here/");
  const version = await provider.send("eth_protocolVersion");
  console.log(version);
})();
Ready to try QuickNode? Start your 7-day free trial