请求
curl https://eth.l0vdinfra.com/YOUR_KEY \
-X POST \
-H "Content-Type: application/json" \
--data '{"jsonrpc":"2.0","id":1,"method":"web3_clientVersion","params":[]}'
{
"jsonrpc": "2.0",
"id": 1,
"result": "erigon/3.4.0/linux-amd64/go1.25.7"
}
参数与您的端点
参数
此方法没有参数。
返回值
string Client version string.
适用场景
See which client software answered, e.g. when you debug a behaviour that differs between Geth, Erigon and Reth.
如何解读结果
A free-form string: client/version/os/runtime.
提示
- Do not parse it for logic; formats differ between clients.
相关方法