dcr

Decred (DCR)

Method: POST getnetworkhashps

dropdown
POST

getnetworkhashps

Returns the estimated network hashes per second for the block heights provided by the parameters.

Parameters

blocks - numeric

Optional, default=120

The number of blocks, or -1 for blocks since last difficulty change.

height - numeric

Optional, default=-1

Perform estimate ending with this height or -1 for current best chain block height.

Request

curl --location --request POST 'https://dcr.getblock.io/mainnet/' 
--header 'x-api-key: YOUR-API-KEY' 
--header 'Content-Type: application/json' 
--data-raw '{"jsonrpc": "2.0",
"method": "getnetworkhashps",
"params": [120, -1],
"id": "getblock.io"}'


Response

{
    "error": null,
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": 195802563671715400
}