eth_mining - Ethereum

eth_mining. Returns true if node is actively mining new blocks

eth_mining - ethereum [Value: 0CU]
Returns true if node is actively mining new blocks.
Use cases

Use cases

  • Check if the Ethereum node is actively mining
  • Verify mining status for node operational checks
  • Monitor node activity to ensure mining processes
Constraints

Constraints

  • Requires active connection to the Ethereum node
  • Node must support the eth_mining method
  • Accurate response depends on node's mining configuration
Get started
Unlock Access to 50+ chains
Boost your app's speed and reliability with dRPC - get your access API key

Language

Request
Examples
curl https://eth.drpc.org \
  -X POST \
  -H "Content-Type: application/json" \
  --data '{"jsonrpc":"2.0","method":"eth_mining","params":[],"id":67}'
Copy
Response
200
{
  "jsonrpc": "2.0",
  "id": 67,
  "result": true
}
Copy

Request params

idinteger
jsonrpcstring
methodstring
ParametersThis method does not accept any parameters.

Response

200

Response params

object
idinteger
jsonrpcstring
resultboolean
It is true if the node is mining, otherwise false