eth_hashrate
Returns the number of hashes per second that the node is mining with on Avalanche C-Chain.
Parameters
This method accepts no parameters.
{
"jsonrpc": "2.0",
"method": "eth_hashrate",
"params": [],
"id": 71
}
Returns
QUANTITY
- number of hashes per second.
Implementation Example
- cURL
- JavaScript
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_hashrate",
"params": [],
"id": 71
}'
const response = await fetch('https://api-avalanche-mainnet-archive.n.dwellir.com/YOUR_API_KEY/ext/bc/C/rpc', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
jsonrpc: '2.0',
method: 'eth_hashrate',
params: [],
id: 71
})
});
const data = await response.json();
console.log(data.result);
Response Example
{
"id": 71,
"jsonrpc": "2.0",
"result": "0x0"
}
Note: Avalanche uses Proof-of-Stake consensus, not Proof-of-Work, so this typically returns 0x0.
Need help? Contact our support team or check the Avalanche documentation.