Arbitrum One
Prêt à utiliser cela en production ?
Le niveau gratuit couvre les projets personnels. Le paiement à l'usage évolue sans carte bancaire.
Arbitrum One
Le niveau gratuit couvre les projets personnels. Le paiement à l'usage évolue sans carte bancaire.
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.| # | Nom | Type | Obligatoire | Description |
|---|---|---|---|---|
| 1 | blockTag | string | Oui | The block to count transactions in. |
| Type | Description |
|---|---|
| string (hex) | Hex-encoded transaction count. |
Try it live in the Arbitrum One playground.
| Code | Message | Cause |
|---|---|---|
-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.Paramètres
hex block number or "latest"/"earliest"/"pending"/"safe"/"finalized"