Bitcoin
Bitcoin
Bitcoin
Das Free-Tier deckt persönliche Projekte ab. Pay-as-you-go skaliert ohne Karte.
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.| # | Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|---|
| 1 | nblocks | number | Nein | Window size in blocks (default ~one month). |
| 2 | blockhash | string | Nein | Final block of the window (default: chain tip). |
| Typ | Beschreibung |
|---|---|
| object | time, txcount, window_final_block_hash, window_final_block_height, window_block_count, window_tx_count, window_interval, txrate. |
| Code | Meldung | Ursache |
|---|---|---|
-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.