dcr

Decred (DCR)

Method: POST estimatestakediff

dropdown
POST

estimatestakediff

Returns the estimated next minimum, maximum, expected, and user-specified stake difficulty.

Parameters

tickets - numeric

Optional.

Use this number of new tickets in blocks to estimate the next difficulty.

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": "estimatestakediff",
"params": [null],
"id": "getblock.io"}'


Response

{
    "error": null,
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": {
        "expected": 195.86888102,
        "max": 203.96821622,
        "min": 193.35253851
    }
}