Arbitrum One
Arbitrum One
Arbitrum One
免费套餐涵盖个人项目。按量付费,无需绑卡即可扩展。
debug_getBadBlocks asks an Arbitrum One node for every block it has seen and rejected as invalid since the process last started. Arbitrum One is an Optimistic Rollup (Nitro/ArbOS, chain ID 42161) that settles to Ethereum L1 and pays gas in ETH, so blocks arrive ordered by the sequencer rather than gossiped from many competing validators — under normal operation this list stays empty. Point your request at https://arbitrum.therpc.io/YOUR_API_KEY and you get back the blocks the node decoded but refused to accept, each paired with its raw RLP so you can inspect exactly why it failed validation.
此方法不需要任何参数,传入空数组 [] 即可。
| 类型 | 描述 |
|---|---|
| array | Array of objects, each with `{hash, block, rlp}` — `block` contains the decoded header fields and `rlp` is the raw RLP-encoded block. Returns an empty array if no bad blocks have been seen. |
Try it live in the Arbitrum One playground.
| 错误码 | 错误信息 | 原因 |
|---|---|---|
-32601 | Method not found | debug namespace not enabled on the node, or client does not implement this method. |
debug_getBadBlocks; a node that does not support it returns -32601 even though the debug namespace is otherwise enabled.