Returns true
if client is actively mining new blocks.
Request
curl 'https://rpc.web3api.io?x-api-key=YOUR-API-KEY' \
-X POST \
-H 'x-amberdata-blockchain-id: ethereum-mainnet' \
-d '{"jsonrpc":"2.0","id":1,"method":"eth_mining","params":[]}'
Response
{
"jsonrpc": "2.0",
"id": 1,
"result": false
}
Field | Description |
---|---|
result | true of the client is mining, otherwise false . |