eth_mining - Optimism

eth_mining. Checks if the client is actively mining, providing with information on the mining status

eth_mining - optimism [Value: 0CU]
Checks if the node is currently mining new blocks
Use cases

Use cases

  • Check if the 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 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://optimism.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
Returns true if the node is actively mining, false otherwise.

Response params

object
idinteger
jsonrpcstring
resultboolean