Parameters
none
Response
result— the current client version string
noneresult — the current client version stringweb3_clientVersion code examplesconst Web3 = require("web3");
const NODE_URL = "CHAINSTACK_NODE_URL";
const web3 = new Web3(NODE_URL);
async function getClientVersion() {
const version = await web3.eth.getNodeInfo();
console.log(`Client version: ${version}`);
}
getClientVersion()
Was this page helpful?