Skip to main content

getnetworkhashps

Overview

The 'getnetworkhashps' method returns the estimated network hashes per second based on the last n blocks.

Request

wget --no-check-certificate --quiet \
--method POST \
--timeout=0 \
--header 'Content-Type: application/json' \
--header 'accept: application/json' \
--header 'X-CoinAPI-Key: 73034021-THIS-IS-SAMPLE-KE' \
--body-data '{"jsonrpc":"2.0","id":1,"method":"getnetworkhashps","params": [ ]}' \
'https://bitcoin-mainnet.node.coinapi.io'

Request Parameters

  • nblocks (numeric, optional, default=120): The number of blocks, or -1 for blocks since last difficulty change.
  • height (numeric, optional, default=-1): To estimate at the time of the given height.

Response

{
"result": [
"n",
...
],
"error": null,
"id": 1
}