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>"
}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>"
}noneresult — a string representing the current client version.web3_clientVersion code examplesconst { 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();
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.Was this page helpful?