eth_hashrate
Returns the number of hashes per second that the node is mining with on the Chiliz network.
Parameters
None (this method takes no parameters)
Returns
Returns the current hashrate as a hexadecimal string representing hashes per second. For non-mining nodes or networks using consensus mechanisms other than Proof of Work, this typically returns "0x0".
Implementation Example
Examples
- cURL
- JavaScript
- Python
curl -X POST https://api-chiliz-mainnet-archive.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-chiliz-mainnet-archive.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('Hash rate:', data.result);
import requests
import json
url = 'https://api-chiliz-mainnet-archive.n.dwellir.com/YOUR_API_KEY'
headers = {'Content-Type': 'application/json'}
payload = {
"jsonrpc": "2.0",
"method": "eth_hashrate",
"params": [],
"id": 1
}
response = requests.post(url, headers=headers, data=json.dumps(payload))
data = response.json()
print('Hash rate:', data['result'])
Response Example
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x0"
}
Notes
- For Chiliz network (Proof of Authority), this typically returns "0x0" since mining is handled by validators
- This method is primarily for compatibility with Ethereum JSON-RPC specification
- Useful for applications that need to detect mining capabilities across different networks
Need help? Contact our support team or check the Chiliz documentation.