Base
¿Listo para usar esto en producción?
El plan gratuito cubre proyectos personales. El pago por uso escala sin necesidad de tarjeta.
Base
El plan gratuito cubre proyectos personales. El pago por uso escala sin necesidad de tarjeta.
debug_getBadBlocks asks a Base node to report the blocks it received but refused to accept — the ones that failed validation against the protocol rules. Base is an OP Stack optimistic rollup built by Coinbase that pays gas in ETH and settles to Ethereum L1, so its execution-layer node tracks the same kind of bad-block history any Geth-derived client does. Point the call at https://base.therpc.io/YOUR_API_KEY (chain ID 8453, or 0x2105 in hex) and the node returns the list of invalid blocks it has observed and rejected since it last started. Each entry pairs the rejected block's hash and decoded header with the raw RLP bytes, so you can see exactly what arrived over the wire.
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 Base playground.
| Código | Mensaje | Causa |
|---|---|---|
-32601 | Method not found | debug namespace not enabled on the node, or client does not implement this method. |
https://base.therpc.io/YOUR_API_KEY returns method-not-found, the debug namespace or this specific call is unavailable on that backend.