getnetworkhashps
JSON-RPC command
getnetworkhashps ( nblocks height )
Returns the estimated network hashes per second based on the last n blocks.
Arguments
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).
Result
x (numeric) Hashes per second estimated
Examples
> bitcoin-cli getnetworkhashps
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getnetworkhashps", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8332/
Bitcoin Cash Node Daemon version v28.0.1-4b729ce
Documentation on docs.bitcoincashnode.org reflects the current master branch in Git, and may include API changes that are not yet present in the latest release.