web3_clientVersion

返回当前以太坊客户端 (如: Geth) 版本。

Request

curl https://eth-mainnet.solarpath.io/v1/YOUR-API-KEY \
    -X POST \
    -H "Content-Type: application/json" \
    -d '{"jsonrpc": "2.0", "id": 1, "method": "web3_clientVersion", "params": []}'

Response

{
  "id": 1,
  "jsonrpc": "2.0",
  "result": "Geth/v1.10.26-stable/linux-amd64/go1.18.8"
}

最后更新于