get_btc_block_stats
Retrieve Bitcoin block fee statistics including fee percentiles (10th to 90th), total fees, block size, and transaction count to identify fee-market anomalies.
Instructions
READ-ONLY — bitcoind getblockstats(hashOrHeight) output: fee distribution (min / max / avg / 10/25/50/75/90 percentile feerates in sat/vB), tx count, block size, total fees. RPC-only — Esplora exposes block size + tx count but NOT fee percentiles. Used to spot fee-market anomalies and to baseline mempool_anomaly. Requires BITCOIN_RPC_URL configured. Issue #248 / #233 v2.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"hashOrHeight": "<hashOrHeight>"
},
"name": "get_btc_block_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hashOrHeight | Yes | Either a 64-hex block hash OR a block height. The RPC method `getblockstats` accepts both forms — pick whichever the agent already has on hand. |