POST
/
efb0a5eccd2caa5135eb54eba6f7f300
curl --request POST \
  --url https://optimism-mainnet.core.chainstack.com/efb0a5eccd2caa5135eb54eba6f7f300 \
  --header 'Content-Type: application/json' \
  --data '{
  "jsonrpc": "2.0",
  "method": "web3_clientVersion",
  "id": 1
}'
{
  "jsonrpc": "<string>",
  "id": 123,
  "result": "<string>"
}

Optimism API method web3_clientVersion retrieves the version string of the Optimism client the node is running. This method is useful for identifying the client and its version, which can be important for compatibility and debugging purposes.

Get you own node endpoint today

Start for free and get your app to production levels immediately. No credit card required.

You can sign up with your GitHub, X, Google, or Microsoft account.

Parameters

This method does not require any parameters.

Response

  • result — the version string of the Optimism client, which typically includes the client name, version, network, platform, and other build information.

Use case

The web3_clientVersion method is essential for:

  • Developers and system administrators needing to verify the client version for compatibility with dApps or network protocols.
  • Services that monitor and report on the distribution of client versions across the network.
  • Tools that automate interactions with Optimism nodes and require version checks to ensure proper operation.

Body

application/json
jsonrpc
string
default:2.0
required
method
string
default:web3_clientVersion
required
id
integer
default:1
required

Response

200 - application/json
The version of the Ethereum client
jsonrpc
string
id
integer
result
string

The client version string.