TriportRPC

web3_clientVersion

Last updated:

`web3_clientVersion` returns a single string identifying the client software and version of the Ethereum node that handled the request. It takes no parameters and is one of the cheapest calls on the API, which makes it a convenient health/connectivity probe: a successful response confirms that your API key is valid, your tier is active, and the node is reachable.

The exact contents of the string are determined by the underlying node and may change over time, so treat it as an opaque diagnostic value rather than something to parse programmatically. It is available on the **free** tier and on every tier above it.

Parameters

This method takes no parameters.

Returns

web3_clientVersion return value
FieldType
resultobject

Examples

curl https://<your-endpoint>/ \
  -X POST -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"web3_clientVersion","params":[]}'
const res = await fetch("https://<your-endpoint>/", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
  "id": 1,
  "method": "web3_clientVersion",
  "params": [],
  "jsonrpc": "2.0"
}),
});
const data = await res.json();
import requests
resp = requests.post("https://<your-endpoint>/", json={"id":1,"method":"web3_clientVersion","params":[],"jsonrpc":"2.0"})
print(resp.json())
{
  "id": 1,
  "result": "reth/v1.10.2-8e3b5e6/x86_64-unknown-linux-gnu",
  "jsonrpc": "2.0"
}

Usage

  1. Transport: HTTP (JSON-RPC).
  2. Networks: mainnet.
  3. Credit cost: 1 per call.

FAQ

What does web3_clientVersion do?
Returns the version string of the Ethereum node client serving your requests.
How many credits does web3_clientVersion cost?
web3_clientVersion costs 1 credit(s) per call on Triport by default.
Is web3_clientVersion available over WebSocket?
web3_clientVersion is an HTTP JSON-RPC method.