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"