getblockstats

Get statistics about a certain block by hash. Returns data about fees, transactions, size etc.

Request

curl 'https://rpc.web3api.io?x-api-key=YOUR-API-KEY' \
    -X POST \
    -H 'x-amberdata-blockchain-id: bitcoin-mainnet' \
    -d '{"jsonrpc":"2.0","id":1,"method":"getblockstats","params":["000000000000000000187f49c0f588440af52039bc6e5951c286b692af2d004d"]}'

Response

{
  "result": {
    "avgfee": 22249,
    "avgfeerate": 44,
    "avgtxsize": 752,
    "blockhash": "000000000000000000187f49c0f588440af52039bc6e5951c286b692af2d004d",
    "feerate_percentiles": [1, 1, 9, 89, 160],
    "height": 594413,
    "ins": 400,
    "maxfee": 1657280,
    "maxfeerate": 160,
    "maxtxsize": 19461,
    "medianfee": 1065,
    "mediantime": 1568236047,
    "mediantxsize": 283,
    "minfee": 192,
    "minfeerate": 1,
    "mintxsize": 189,
    "outs": 208,
    "subsidy": 1250000000,
    "swtotal_size": 57538,
    "swtotal_weight": 128878,
    "swtxs": 53,
    "time": 1568237290,
    "total_out": 8695761650,
    "total_size": 76777,
    "total_weight": 205834,
    "totalfee": 2269450,
    "txs": 103,
    "utxo_increase": -192,
    "utxo_size_inc": -11929
  },
  "error": null,
  "id": 1
}