Skip to content

getnetworkhashps JSON-RPC command

getnetworkhashps ( nblocks height )

Returns the estimated network hashes per second based on the last n blocks.


1. nblocks    (numeric, optional, default=120) The number of blocks to use for the network hashrate estimation.
2. height     (numeric, optional, default=-1) Estimate the network hashrate at the time of this block height (-1 for current block height).


x             (numeric) Hashes per second estimated


> bitcoin-cli getnetworkhashps
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getnetworkhashps", "params": [] }' -H 'content-type: text/plain;'

Bitcoin Cash Node Daemon version v27.0.1-6ebcb9e

Documentation on reflects the current master branch in Git, and may include API changes that are not yet present in the latest release.