Internal
Bespoke
Geth
eth_hashrate
Summary: Get hash rate
This request returns the number of hashes per second that the node is mining at. Only applicable in PoW when the node is mining.
Parameters
This method doesn't accept any parameters.
Returns
eth_hashrateResponse string
Hexadecimal representation of the number of hashes per second.
Pattern: ^0x([1-9a-f]+[0-9a-f]*|0)$
Customize request
Parameter
Value
Request
curl https://linea-mainnet.infura.io/v3/<YOUR-API-KEY> \
-X POST \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "eth_hashrate",
"params": [],
"id": 1
}'
Example response
{
"id": 1,
"jsonrpc": "2.0",
"result": "0x0"
}