Bitcoin
Bitcoin
Bitcoin
El plan gratuito cubre proyectos personales. El pago por uso escala sin necesidad de tarjeta.
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.| # | Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|---|
| 1 | nblocks | number | No | Window size in blocks (default ~one month). |
| 2 | blockhash | string | No | Final block of the window (default: chain tip). |
| Tipo | Descripción |
|---|---|
| object | time, txcount, window_final_block_hash, window_final_block_height, window_block_count, window_tx_count, window_interval, txrate. |
| Código | Mensaje | Causa |
|---|---|---|
-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.