Base
Base
Base
الخطة المجانية تغطي المشاريع الشخصية. الدفع حسب الاستخدام يتوسع دون بطاقة.
eth_getBlockTransactionCountByNumber returns how many transactions sit in a single Base block, identified by its height or by a tag like latest, safe, or finalized. Base is Coinbase's OP Stack optimistic rollup, settling to Ethereum L1 and paying gas in ETH, with its sequencer producing a block roughly every 2 seconds — so this counter is a fast-moving signal of throughput. Send the request to https://base.therpc.io/YOUR_API_KEY (chain ID 8453, hex 0x2105). The response is the transaction count of the chosen block, hex-encoded.
latest block's count each time Base seals one — bursts from consumer and social apps show up here first.| # | الاسم | النوع | مطلوب | الوصف |
|---|---|---|---|---|
| 1 | blockTag | string | نعم | The block to count transactions in. |
| النوع | الوصف |
|---|---|
| string (hex) | Hex-encoded transaction count. |
Try it live in the Base playground.
| الكود | الرسالة | السبب |
|---|---|---|
-32602 | Invalid params | Block tag is malformed or unrecognised. |
pending tag counts transactions the Base sequencer has queued for the next block; that figure can shift between two back-to-back calls, so do not treat it as final."0x4a" — run parseInt(value, 16) before doing any numeric comparison or charting.المعاملات
hex block number or "latest"/"earliest"/"pending"/"safe"/"finalized"