eth_hashrate - Optimism

eth_hashrate. Returns the current mining hashrate of the network

eth_hashrate - optimism [Value: 0CU]
Retrieves the number of hashes per second that the node is mining with
Use cases

Use cases

  • Monitor mining performance of the node
  • Track hashrate to evaluate node's mining capability
  • Assess node's computational power for blockchain validation
Constraints

Constraints

  • Requires node to be actively mining
  • Accurate hashrate data depends on node's current state
  • Continuous connection needed for real-time monitoring
Get started
Unlock Access to 50+ chains
Boost your app's speed and reliability with dRPC - get your access API key

Language

Request
Examples
curl https://optimism.drpc.org \
  -X POST \
  -H "Content-Type: application/json" \
  --data '{"jsonrpc":"2.0","method":"eth_hashrate","params":[],"id":67}'
'
Copy
Response
200
{
  "jsonrpc": "2.0",
  "id": 67,
  "result": "0x2540be400" 
}
Copy

Request params

idinteger
jsonrpcstring
methodstring
ParametersThis method does not accept any parameters.

Response

200
The number of hashes per second that the node is currently mining at, returned as a hexadecimal string.

Response params

object
idinteger
jsonrpcstring
resultstring