⚠️Blast API (blastapi.io) ends Oct 31. Migrate to Dwellir and skip Alchemy's expensive compute units.
Switch Today →
Skip to main content

eth_mining

Returns true if client is actively mining new blocks on Avalanche C-Chain.

Parameters

This method accepts no parameters.

{
"jsonrpc": "2.0",
"method": "eth_mining",
"params": [],
"id": 71
}

Returns

Boolean - returns true of the client is mining, otherwise false.

Implementation Example

curl -X POST https://api-avalanche-mainnet-archive.n.dwellir.com/YOUR_API_KEY/ext/bc/C/rpc \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "eth_mining",
"params": [],
"id": 71
}'

Response Example

{
"id": 71,
"jsonrpc": "2.0",
"result": false
}

Note: Avalanche uses Proof-of-Stake consensus, not traditional mining, so this typically returns false.


Need help? Contact our support team or check the Avalanche documentation.