Marketplace has launched, further enabling blockchain developers! Learn more


eth_mining RPC method

The eth_mining EVM method is only supported on the Avalanche C-Chain.


  1. None


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

Code Examples:

To use the eth_mining EVM method on the Avalanche C-Chain, ensure that the end of your URL includes ext/bc/C/rpc.

const ethers = require("ethers");
(async () => {
  const provider = new ethers.providers.JsonRpcProvider("");
  const isMining = await provider.send("eth_mining");
Ready to get started? Create a free account