Skip to main content
POST
/
web3_clientVersion
curl --request POST \
  --url https://monad-testnet.core.chainstack.com/9c5b265f20b3ea5df4f54f70eb74b800/ \
  --header 'Content-Type: application/json' \
  --data '{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "web3_clientVersion",
  "params": []
}'
{
  "jsonrpc": "<string>",
  "id": 123,
  "result": "<string>"
}
Monad API method that returns the current client version. This method is useful for identifying the node implementation and version you are connected to.
Get you own node endpoint todayStart 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

  • none

Response

  • result — a string representing the current client version.

web3_clientVersion code examples

const { ethers } = require("ethers");

const provider = new ethers.JsonRpcProvider("CHAINSTACK_NODE_URL");

async function getClientVersion() {
  const clientVersion = await provider.send("web3_clientVersion", []);
  console.log(`Client version: ${clientVersion}`);
}

getClientVersion();

Use case

A practical use case for web3_clientVersion is implementing compatibility checks in your application to ensure the connected node supports required features, or logging node information for debugging and monitoring purposes.

Body

application/json
id
integer
default:1
jsonrpc
string
default:2.0
method
string
default:web3_clientVersion
params
any[]

Response

200 - application/json

The current client version.

jsonrpc
string
id
integer
result
string