web3_clientVersion - HyperEVM
Example code for the web3_clientVersion JSON RPC method. Сomplete guide on how to use web3_clientVersion GetBlock JSON RPC in GetBlock Web3 documentation.
This method returns the current client version.
Parameters
None
Request
curl --location --request POST 'https://go.getblock.io/<ACCESS-TOKEN>/' \
--header 'Content-Type: application/json' \
--data-raw '{
"jsonrpc": "2.0",
"method": "web3_clientVersion",
"params": [],
"id": "getblock.io"
}'const axios = require('axios');
const response = await axios.post('https://go.getblock.io/<ACCESS-TOKEN>/', {
jsonrpc: '2.0',
method: 'web3_clientVersion',
params: [],
id: 'getblock.io'
});
console.log('Client Version:', response.data.result);import requests
response = requests.post('https://go.getblock.io/<ACCESS-TOKEN>/', json={
'jsonrpc': '2.0',
'method': 'web3_clientVersion',
'params': [],
'id': 'getblock.io'
})
print(f'Client Version: {response.json()["result"]}')Response
{
"jsonrpc": "2.0",
"id": "getblock.io",
"result": "HyperEVM/v1.0.0/linux-amd64"
}Response Parameters
Field
Type
Description
result
string
Client version string.
Use Case
The web3_clientVersion method is essential for:
Client identification
Version verification
Debugging and diagnostics
Compatibility checks
Error Handling
Error Code
Message
Cause
-32603
Internal error
Node issue.
Web3 Integration
Last updated
Was this helpful?