L0vdL0vd

eth_protocolVersion

Returns the Ethereum wire protocol version the node speaks.

curl https://eth.l0vdinfra.com/YOUR_KEY \
  -X POST \
  -H "Content-Type: application/json" \
  --data '{"jsonrpc":"2.0","id":1,"method":"eth_protocolVersion","params":[]}'

Example response

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "0x44"
}
Params and your endpoint

Parameters

This method takes no parameters.

Returns

string Protocol version, hex: "0x44" is eth/68.

When to use it

See which devp2p eth protocol the node speaks, when you debug client compatibility.

How to read the result

Hex number: 0x44 = 68, the eth/68 protocol.

Tips

  • Rarely needed in applications; eth_chainId and web3_clientVersion are more useful checks.

Related methods