Docs
Berachain

eth_mining - Check if node is mining

Check if node is mining on Berachain. Essential for blockchain interaction.

Check if node is mining on the Berachain network.

Request Parameters

Request

This method accepts no parameters.

Response Body

Response
resultOBJECT

The return value depends on the specific method being called.

Implementation Example

Bash
curl -X POST https://api-berachain-mainnet.n.dwellir.com/YOUR_API_KEY \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "method": "eth_mining",
    "params": [],
    "id": 1
  }'
JavaScript
const response = await fetch('https://api-berachain-mainnet.n.dwellir.com/YOUR_API_KEY', {
  method: 'POST',
  headers: { 'Content-Type': 'application/json' },
  body: JSON.stringify({
    jsonrpc: '2.0',
    method: 'eth_mining',
    params: [],
    id: 1
  })
});

const data = await response.json();
console.log(data.result);

On this page