Skip to content
Alchemy Logo

getnetworkhashps

POST
/{apiKey}

Returns the estimated network hashes per second based on the last n blocks. Pass in nblocks to override the default number of blocks, or -1 to get the value since the last difficulty change.

Path Parameters

stringrequireddefaults to docs-demo

For higher throughput, create your own API key

Request

integeroptionaldefaults to 120

The number of blocks to use for the calculation. Default is 120. Use -1 to calculate since last difficulty change.

integeroptionaldefaults to -1

To estimate at the time of the given height. Default is -1 (current tip).

Responses

200

Hashes per second estimated.

Network hashes per second.

Was this page helpful?