🚀 We’re excited to announce our $35m Series A led by Tiger Global: Press Release, Coindesk, Bloomberg, Business Insider & RefreshMiami!

Contents

eth_mining RPC method

Parameters:

  1. None

Returns:

  1. Result - Boolean true if the node is mining, otherwise false.

Code Examples:

const ethers = require("ethers");
(async () => {
  const provider = new ethers.providers.JsonRpcProvider("http://sample-endpoint-name.network.quiknode.pro/token-goes-here/");
  const isMining = await provider.send("eth_mining");
  console.log(isMining);
})();
Ready to try QuickNode? Start your 7-day free trial