# Ethereum eth_mining RPC method
Ethereum API method that returns a boolean value referring to the node mining activity. Will return True
if the node is actively mining new blocks.
Parameters:
none
Returns:
result
— the boolean valueTrue
if the node is mining, otherwiseFalse
.
Example:
- web3.js
- web3.py
- eth.rb
- cURL
const Web3 = require("web3");
const node_url = "CHAINSTACK_NODE_URL";
const web3 = new Web3(node_url);
web3.eth.isMining()
.then(console.log);