get_btc_block_stats
Get Bitcoin block fee distribution (percentiles), tx count, size, and total fees. Use to detect fee-market anomalies via RPC.
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.
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. |