Optimism
هل أنت مستعد لاستدعاء هذا في الإنتاج؟
الخطة المجانية تغطي المشاريع الشخصية. الدفع حسب الاستخدام يتوسع دون بطاقة.
Optimism
الخطة المجانية تغطي المشاريع الشخصية. الدفع حسب الاستخدام يتوسع دون بطاقة.
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.
هذا الأسلوب لا يأخذ أي معاملات. مرر مصفوفة فارغة [].
| النوع | الوصف |
|---|---|
| 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.
| الكود | الرسالة | السبب |
|---|---|---|
-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.