⚡ We welcome businesses to test our enterprise-grade service

btg
Bitcoin Gold (BTG)

Method: POST getblockstats

dropdown

方法 RPC getblockstats 例如 Bitcoin Gold (BTG)

POST getblockstats

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

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

Parameters

hash_or_height - 字符串或数字,需要

目标块的块或高度

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

绘制的值(请参见下面的结果)

Request

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


Response

{
    "error": null,
    "id": "getblock.io",
    "result": {
        "avgfee": 0,
        "avgfeerate": 0,
        "avgtxsize": 0,
        "blockhash": "000000009ec5dd6b53858593718cacdaaec989aaf9028c68013947224712682e",
        "feerate_percentiles": [
            0,
            0,
            0,
            0,
            0
        ],
        "height": 702518,
        "ins": 0,
        "maxfee": 0,
        "maxfeerate": 0,
        "maxtxsize": 0,
        "medianfee": 0,
        "mediantime": 1630942082,
        "mediantxsize": 0,
        "minfee": 0,
        "minfeerate": 0,
        "mintxsize": 0,
        "outs": 2,
        "subsidy": 625000000,
        "swtotal_size": 0,
        "swtotal_weight": 0,
        "swtxs": 0,
        "time": 1630943363,
        "total_out": 0,
        "total_size": 0,
        "total_weight": 0,
        "totalfee": 0,
        "txs": 1,
        "utxo_increase": 2,
        "utxo_size_inc": 163
    }
}