Parameters
NoneResponse
string— the current Ethereum protocol version
string — the current Ethereum protocol versioneth_protocolVersion code examplesconst { JsonRpcProvider } = require("ethers");
const provider = new JsonRpcProvider("CHAINSTACK_NODE_URL");
async function call() {
const result = await provider.send("eth_protocolVersion", []);
console.log(result);
}
call();
Was this page helpful?