Base
Base
Base
Free tier covers personal projects. Pay-as-you-go scales without a card.
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.| # | Name | Type | Required | Description |
|---|---|---|---|---|
| 1 | blockTag | string | Yes | The block to count transactions in. |
| Type | Description |
|---|---|
| string (hex) | Hex-encoded transaction count. |
Try it live in the Base playground.
| Code | Message | Cause |
|---|---|---|
-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.Parameters
hex block number or "latest"/"earliest"/"pending"/"safe"/"finalized"