Arbitrum One
Arbitrum One
Arbitrum One
免费套餐涵盖个人项目。按量付费,无需绑卡即可扩展。
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.| # | 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| 1 | blockTag | string | 是 | The block to retrieve. |
| 2 | includeTransactions | boolean | 是 | When true, transactions[] contains full transaction objects. When false, only hashes. |
| 类型 | 描述 |
|---|---|
| object | null | Same block object as eth_getBlockByHash. Returns null if the block does not exist. |
Try it live in the Arbitrum One playground.
| 错误码 | 错误信息 | 原因 |
|---|---|---|
-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.参数
hex block number or "latest"/"earliest"/"pending"/"safe"/"finalized"
true = full tx objects, false = tx hashes only