Base
准备好在生产环境中调用了吗?
免费套餐涵盖个人项目。按量付费,无需绑卡即可扩展。
Base
免费套餐涵盖个人项目。按量付费,无需绑卡即可扩展。
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.
此方法不需要任何参数,传入空数组 [] 即可。
| 类型 | 描述 |
|---|---|
| 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.
| 错误码 | 错误信息 | 原因 |
|---|---|---|
-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.