Skip to main content
Internal
Bespoke
Geth

eth_mining

Summary: Get mining status

This request returns true if client is actively mining new blocks.

Parameters

This method doesn't accept any parameters.

Returns

eth_miningResponse boolean

True/false for mining status.

Customize request
Parameter
Value
Request
curl https://linea-mainnet.infura.io/v3/<YOUR-API-KEY> \
-X POST \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "eth_mining",
"params": [],
"id": 1
}'
Example response
{
"id": 1,
"jsonrpc": "2.0",
"result": "false"
}