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.