Optimism
Pronto para usar isso em produção?
O plano gratuito cobre projetos pessoais. O pay-as-you-go escala sem cartão de crédito.
Optimism
O plano gratuito cobre projetos pessoais. O pay-as-you-go escala sem cartão de crédito.
debug_getBadBlocks returns the list of invalid blocks an OP Mainnet node has seen and rejected since it last started — blocks that failed validation and never entered the canonical chain that settles to Ethereum L1. OP Mainnet is an OP Stack optimistic rollup where gas and value move in ETH, so this method surfaces malformed or consensus-breaking blocks that op-geth refused to import rather than anything about token balances. Send the request to https://optimism.therpc.io/YOUR_API_KEY (chain ID 10, 0xa); each entry carries the block hash, the decoded header, and the raw RLP so you can inspect exactly what was rejected.
Este método não aceita parâmetros. Passe um array vazio [].
| Tipo | Descrição |
|---|---|
| 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 Optimism playground.
| Código | Mensagem | Causa |
|---|---|---|
-32601 | Method not found | debug namespace not enabled on the node, or client does not implement this method. |
-32601 if the debug namespace is unavailable.