eth_mining

Checks if the Ethereum node is currently mining new blocks

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

Request params

NameTypeDescription
idintegerRequest identifier
jsonrpcstringJSON-RPC version
methodstringAPI method name
ParametersThis method does not accept any parameters. 

Response

200
Returns true if the node is actively mining, false otherwise.
NameTypeDescription
Parametersobject 
idinteger
jsonrpcstring
resultboolean