以太坊JSON RPC手册

eth_protocolVersion

返回当前以太坊协议的版本。

参数

返回值

String - 当前的以太坊协议版本

示例代码

请求:

curl -X POST --data '{"jsonrpc":"2.0","method":"eth_protocolVersion","params":[],"id":67}'

响应:

{
  "id":67,
  "jsonrpc": "2.0",
  "result": "54"
}