Polygon
eth_hashrate - Get node hashrate
Get node hashrate on Polygon. Essential for blockchain interaction.
Get node hashrate on the Polygon network.
Request Parameters
This method accepts no parameters.
Response Body
The return value depends on the specific method being called.
Implementation Example
curl -X POST https://api-polygon-mainnet-full.n.dwellir.com/YOUR_API_KEY \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "eth_hashrate",
"params": [],
"id": 1
}'const response = await fetch('https://api-polygon-mainnet-full.n.dwellir.com/YOUR_API_KEY', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
jsonrpc: '2.0',
method: 'eth_hashrate',
params: [],
id: 1
})
});
const data = await response.json();
console.log(data.result);