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://go.getblock.io/<ACCESS-TOKEN>/' \
--header 'Content-Type: application/json' \
--data-raw '{
    "jsonrpc": "2.0",
    "method": "web3_clientVersion",
    "params": [],
    "id": "getblock.io"
}'

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?