eth_mining - Polygon
eth_mining. Check if the client is currently mining
eth_mining - polygon [Value: 0CU]
Checks if the node is currently mining new blocks
Use cases
- Check if the node is actively mining
- Verify mining status for node operational checks
- Monitor node activity to ensure mining processes
Constraints
- Requires active connection to the node
- Node must support the eth_mining method
- Accurate response depends on node's mining configuration
Unlock Access to 50+ chains
Boost your app's speed and reliability with dRPC - get your access API key
Language
Request
Examples
curl https://polygon.drpc.org \
-X POST \
-H "Content-Type: application/json" \
--data '{"jsonrpc":"2.0","method":"eth_mining","params":[],"id":67}'
Response
200
{
"jsonrpc": "2.0",
"id": 67,
"result": true
}
Request params
idinteger
jsonrpcstring
methodstring
Response
200
Returns true if the node is actively mining, false otherwise.Response params
object
idinteger
jsonrpcstring
resultboolean