⚡ We welcome businesses to test our enterprise-grade service

btg
Bitcoin Gold (BTG)

Method: POST getchaintxstats

dropdown

方法 RPC getchaintxstats 例如 Bitcoin Gold (BTG)

POST getchaintxstats

计算有关链中交易总数和速率的统计数据。

Parameters

nblocks - 数字,可选,默认值=一个月

窗口的尺寸

blockhash - 字符串,可选,默认=链提示

结束窗口的块的哈希。

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


Response

{
    "error": null,
    "id": "getblock.io",
    "result": {
        "time": 1631009439,
        "txcount": 267125509,
        "txrate": 0.008025484826468452,
        "window_block_count": 4320,
        "window_final_block_hash": "000000007cc1fc836d0992202730ca71f77a8cf2a35974ca300dadbf8bc1e090",
        "window_interval": 2594485,
        "window_tx_count": 20822
    }
}