Bitcoin
Bitcoin
Bitcoin
免费套餐涵盖个人项目。按量付费,无需绑卡即可扩展。
getchaintxstats reports how many transactions the Bitcoin chain has ever recorded and how fast they have been arriving lately. It returns the cumulative txcount up to a chosen block plus window figures — window_tx_count, window_interval, and txrate (transactions per second) — measured over a span you control with nblocks. Since Bitcoin settles BTC roughly every ten minutes, this is the cleanest single call for throughput analytics without summing blocks yourself. Send it to https://bitcoin.therpc.io/YOUR_API_KEY, optionally passing a window size and a final block hash.
txrate over a chosen block window.txcount.| # | 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| 1 | nblocks | number | 否 | Window size in blocks (default ~one month). |
| 2 | blockhash | string | 否 | Final block of the window (default: chain tip). |
| 类型 | 描述 |
|---|---|
| object | time, txcount, window_final_block_hash, window_final_block_height, window_block_count, window_tx_count, window_interval, txrate. |
| 错误码 | 错误信息 | 原因 |
|---|---|---|
-5 | Block not found | No block matches the given hash — check the hash and that the block is on the chain this endpoint serves. |
txrate is transactions per second across the window, so multiply it by window_interval (seconds) to recover an actual transaction count.nblocks window makes the rate noisy because Bitcoin's ~10-minute block timing varies — widen the window for a stable figure.