eth_hashrate
Get node hashrate on the Mantle Network. Always returns 0x0 since Mantle uses optimistic rollup consensus instead of proof-of-work mining.
Parameters
None
Returns
String - Always "0x0" as Mantle Network does not use proof-of-work mining.
Implementation Example
- cURL
- JavaScript
curl -X POST https://api-mantle-mainnet.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-mantle-mainnet.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); // "0x0"
Response Example
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x0"
}
Need help? Contact our support team or check the Mantle documentation.