Skip to main content
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.