dcr

Decred (DCR)

Method: POST ticketfeeinfo

dropdown
POST

ticketfeeinfo

Returns various information about ticket fees from the mempool, blocks, and difficulty windows (units: DCR/kB).

Parameters

blocks - numeric

The number of blocks, starting from the chain tip and descending, to return fee information about.

difficulty - numeric

The number of difficulty windows to return ticket fee information about.

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


Response

{
    "error": null,
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": {
        "feeinfoblocks": [
            {
                "height": 590054,
                "max": 0,
                "mean": 0,
                "median": 0,
                "min": 0,
                "number": 0,
                "stddev": 0
            },
            {
                "height": 590053,
                "max": 0.00010033,
                "mean": 0.00010033,
                "median": 0.00010033,
                "min": 0.00010033,
                "number": 1,
                "stddev": 0
            }
        ],
        "feeinfomempool": {
            "max": 0.00010067,
            "mean": 0.00010067,
            "median": 0.00010067,
            "min": 0.00010067,
            "number": 1,
            "stddev": 0
        },
        "feeinfowindows": [
            {
                "endheight": 590055,
                "max": 0.00010101,
                "mean": 0.00010049,
                "median": 0.00010033,
                "min": 0.00010033,
                "number": 417,
                "startheight": 589968,
                "stddev": 1.7e-07
            },
            {
                "endheight": 589824,
                "max": 0.00010101,
                "mean": 0.0001005,
                "median": 0.00010033,
                "min": 0.00010033,
                "number": 834,
                "startheight": 589680,
                "stddev": 1.7e-07
            }
        ]
    }
}