⚡ We welcome businesses to test our enterprise-grade service

dgb
DigiByte (DGB)

Method: POST getblockstats

dropdown

方法 RPC getblockstats 例如 DigiByte (DGB)

POST getblockstats

计算给定窗口的每个块统计信息。 所有金额都在Satoshis。

修剪不会在某些高度上起作用。

Parameters

hash_or_height - 字符串或数字,需要

目标块的块或高度

stats - JSON数组,可选,默认值=所有值

绘制的值

Request

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


Response

{
    "error": null,
    "id": "getblock.io",
    "result": {
        "avgfee": 7777,
        "avgfeerate": 36,
        "avgtxsize": 373,
        "blockhash": "8aef53e812659444b72dfa021ccbfddfb795e04889788c8dee802113e186acf3",
        "feerate_percentiles": [
            36,
            36,
            36,
            36,
            36
        ],
        "height": 13627174,
        "ins": 2,
        "maxfee": 7777,
        "maxfeerate": 36,
        "maxtxsize": 373,
        "medianfee": 7777,
        "mediantime": 1631261365,
        "mediantxsize": 373,
        "minfee": 7777,
        "minfeerate": 36,
        "mintxsize": 373,
        "outs": 4,
        "subsidy": 49718262027,
        "swtotal_size": 373,
        "swtotal_weight": 844,
        "swtxs": 1,
        "time": 1631261485,
        "total_out": 148836406423,
        "total_size": 373,
        "total_weight": 844,
        "totalfee": 7777,
        "txs": 2,
        "utxo_increase": 2,
        "utxo_size_inc": 166
    }
}