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.