web3_clientVersion
BNB Smart Chain / https://triport.io/rpc/bsc
Minimum tier: Free
Last updated:
web3_clientVersion returns the software version string reported by the selected BNB Smart Chain node.
Use it for diagnostics, compatibility investigation, or support data. Requests may be routed among eligible upstream nodes, so applications must not assume that the returned string is stable across calls.
This method identifies client software only. Use eth_chainId to verify the chain and eth_syncing to inspect synchronization state.
Parameters
This method takes no parameters.
Returns
| Field | Type |
|---|---|
| clientVersion | String |
Examples
curl https://triport.io/rpc/bsc \
-X POST -H 'Content-Type: application/json' \
-H 'Authorization: Bearer <api-key>' \
-d '{"jsonrpc":"2.0","id":1,"method":"web3_clientVersion","params":[]}'const res = await fetch("https://triport.io/rpc/bsc", {
method: "POST",
headers: { "Content-Type": "application/json", Authorization: "Bearer <api-key>" },
body: JSON.stringify({
"jsonrpc": "2.0",
"id": 1,
"method": "web3_clientVersion",
"params": []
}),
});
const data = await res.json();import requests
resp = requests.post(
"https://triport.io/rpc/bsc",
headers={"Authorization": "Bearer <api-key>"},
json={"jsonrpc":"2.0","id":1,"method":"web3_clientVersion","params":[]},
)
print(resp.json())Usage
- Transport: HTTP (JSON-RPC).
- Chain: BNB Smart Chain.
- Clusters: mainnet.
- Credit cost: 1 per call.
FAQ
- What does web3_clientVersion do?
- Return the selected node client version.
- 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.