Skip to main content
Plasma API method that returns the number of hashes per second that the node is mining with.

Parameters

None

Response

  • quantity — the number of hashes per second

eth_hashrate code examples

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

const provider = new JsonRpcProvider("CHAINSTACK_NODE_URL");

async function call() {
  const result = await provider.send("eth_hashrate", []);
  console.log(result);
}

call();