Arbitrum One
Arbitrum One
Arbitrum One
Das Free-Tier deckt persönliche Projekte ab. Pay-as-you-go skaliert ohne Karte.
eth_getBlockByNumber returns the full block data for an Arbitrum One L2 block at a given height or named tag (latest, finalized, safe, earliest, pending). On this ETH-gas Optimistic Rollup it is the standard way to walk the chain or pull the current tip, since the Nitro sequencer is producing blocks sub-second. Send the request, with a boolean for full transactions versus hashes, to https://arbitrum.therpc.io/YOUR_API_KEY (chain ID 42161).
latest block for a real-time monitoring dashboard of L2 activity.finalized block to anchor reorg-safe queries — important on a rollup where soft confirmations precede L1-backed finality.includeTransactions=false) before fetching their receipts in bulk.| # | Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|---|
| 1 | blockTag | string | Ja | The block to retrieve. |
| 2 | includeTransactions | boolean | Ja | When true, transactions[] contains full transaction objects. When false, only hashes. |
| Typ | Beschreibung |
|---|---|
| object | null | Same block object as eth_getBlockByHash. Returns null if the block does not exist. |
Try it live in the Arbitrum One playground.
| Code | Meldung | Ursache |
|---|---|---|
-32602 | Invalid params | Block number is malformed or block tag is unrecognised. |
includeTransactions, not the string "true" — the node requires the JSON boolean type.eth_getBlockReceipts call over N separate eth_getTransactionReceipt calls.includeTransactions=true, a heavily loaded Arbitrum One block can reach 1–2 MB given the rollup's high transaction throughput — budget bandwidth accordingly.Parameter
hex block number or "latest"/"earliest"/"pending"/"safe"/"finalized"
true = full tx objects, false = tx hashes only