eth_hashrate
Overview
Returns the node hashrate. On PoS/L2 networks this is typically 0x0
.
Parameters
Name | Type | Required | Description |
---|---|---|---|
(none) | — | — | No parameters. |
Returns
Hex hashrate per second.
Code Examples
cURL
curl -X POST https://api-movement-mainnet.n.dwellir.com/YOUR_API_KEY/v1 \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"eth_hashrate","params":[],"id":1}'
viem
import { createPublicClient, http } from 'viem';
const client = createPublicClient({ transport: http('https://api-movement-mainnet.n.dwellir.com/YOUR_API_KEY/v1') });
const rate = await client.request({ method: 'eth_hashrate', params: [] });
console.log(rate);