Skip to main content

eth_mining

Overview

The "eth_mining" method returns true if client is actively mining new blocks.

Request

curl --request POST \
--url https://ethereum-mainnet-geth-archive.node.coinapi.io \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--header 'X-CoinAPI-Key: 73034021-THIS-IS-SAMPLE-KEY' \
--data '
{
"id": 1,
"jsonrpc": "2.0",
"method": "eth_mining"
}'

Request Parameters

Response

{
"jsonrpc": "2.0",
"id": 1,
"error": {
"code": -32601,
"message": ""
}
}