请求
curl https://eth.l0vdinfra.com/YOUR_KEY \
-X POST \
-H "Content-Type: application/json" \
--data '{"jsonrpc":"2.0","id":1,"method":"eth_protocolVersion","params":[]}'
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x44"
}
参数与您的端点
参数
此方法没有参数。
返回值
string Protocol version, hex: "0x44" is eth/68.
适用场景
See which devp2p eth protocol the node speaks, when you debug client compatibility.
如何解读结果
Hex number: 0x44 = 68, the eth/68 protocol.
提示
- Rarely needed in applications; eth_chainId and web3_clientVersion are more useful checks.
相关方法