Arbitrum One
Arbitrum One
Pronto para usar isso em produção?
O plano gratuito cobre projetos pessoais. O pay-as-you-go escala sem cartão de crédito.
Arbitrum One
O plano gratuito cobre projetos pessoais. O pay-as-you-go escala sem cartão de crédito.
eth_getBlockTransactionCountByNumber reports how many transactions sit in a single Arbitrum One block, identified by its height or by a tag such as latest. Arbitrum One is an Optimistic Rollup (chain ID 42161) where the Nitro sequencer pays gas in ETH and posts batches down to Ethereum L1, so block occupancy reflects rollup demand rather than L1 mempool pressure. Send the request to https://arbitrum.therpc.io/YOUR_API_KEY and you get back the number of transactions in the block at the given height or block tag, encoded as a hex string.
latest block's transaction count to gauge real-time load on the Arbitrum sequencer during busy DeFi windows on GMX or Camelot.| # | 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 Arbitrum One playground.
| Código | Mensagem | Causa |
|---|---|---|
-32602 | Invalid params | Block tag is malformed or unrecognised. |
pending tag counts transactions the sequencer currently holds for the next block; that figure shifts between calls as Arbitrum's sub-second soft confirmations land, so treat it as a moving estimate."0x2a") — run it through parseInt(value, 16) before any numeric comparison.Parâmetros
hex block number or "latest"/"earliest"/"pending"/"safe"/"finalized"