Arbitrum One
¿Listo para usar esto en producción?
El plan gratuito cubre proyectos personales. El pago por uso escala sin necesidad de tarjeta.
Arbitrum One
El plan gratuito cubre proyectos personales. El pago por uso escala sin necesidad de tarjeta.
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.
Este método no acepta parámetros. Pasa un array vacío [].
| Tipo | Descripción |
|---|---|
| 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.
| Código | Mensaje | Causa |
|---|---|---|
-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.