zen

Horizen (ZEN)

Method: POST getblockstats

dropdown

POST getblockstats

Compute per block statistics for a given window. All amounts are in satoshis.

It won't work for some heights with pruning.

Parameters

hash_or_height - string or numeric, required

The block hash or height of the target block

stats - json array, optional, default=all values

Values to plot (see result below)

Request

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


Response

{
    "error": null,
    "id": "getblock.io",
    "result": {
        "avgfee": 0.0,
        "avgfeerate": 0.0,
        "avgtxsize": 0,
        "blockhash": "00000000c937983704a73af28acdec37b049d214adbda81d7e2a3dd146f6ed09",
        "feerate_percentiles": [
            0.0,
            0.0,
            0.0,
            0.0,
            0.0
        ],
        "height": 1000,
        "ins": 0,
        "maxfee": 0.0,
        "maxfeerate": 0.0,
        "maxtxsize": 0,
        "medianfee": 0.0,
        "mediantime": 1232344831,
        "mediantxsize": 0,
        "minfee": 0.0,
        "minfeerate": 0.0,
        "mintxsize": 0,
        "outs": 1,
        "subsidy": 50.0,
        "time": 1232346882,
        "total_out": 0.0,
        "total_size": 0,
        "totalfee": 0.0,
        "txs": 1,
        "utxo_increase": 1,
        "utxo_size_inc": 117
    }
}
GetBlock.io

Get access to 40+ blockchain nodes right now! GetBlock provides a fast and reliable connection for the most popular cryptocurrencies` nodes.

Subscribe

Email is invalid

2019 - 2021 GetBlock