For the complete documentation index, see llms.txt. This page is also available as Markdown.

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
curl --location --request POST 'https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/' \
--header 'Content-Type: application/json' \
--data-raw '{
    "jsonrpc": "2.0",
    "method": "web3_clientVersion",
    "params": [],
    "id": "getblock.io"
}'
JavaScript (Node.js, axios)
const axios = require('axios');

const response = await axios.post('https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/', {
    jsonrpc: '2.0',
    method: 'web3_clientVersion',
    params: [],
    id: 'getblock.io'
});

console.log('Client Version:', response.data.result);
Python (requests)
import requests

response = requests.post('https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/', json={
    'jsonrpc': '2.0',
    'method': 'web3_clientVersion',
    'params': [],
    'id': 'getblock.io'
})

print(f'Client Version: {response.json()["result"]}')

Response

Response (example)
{
    "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?