Base
Base
Base
O plano gratuito cobre projetos pessoais. O pay-as-you-go escala sem cartão de crédito.
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.| # | Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| 1 | blockTag | string | Sim | The block to count transactions in. |
| Tipo | Descrição |
|---|---|
| string (hex) | Hex-encoded transaction count. |
Try it live in the Base playground.
| Código | Mensagem | Causa |
|---|---|---|
-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.Parâmetros
hex block number or "latest"/"earliest"/"pending"/"safe"/"finalized"