L0vdL0vd

web3_clientVersion

Returns the node client name and version.

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.

Связанные методы