BNB Smart Chain
¿Listo para usar esto en producción?
El plan gratuito cubre proyectos personales. El pago por uso escala sin necesidad de tarjeta.
BNB Smart Chain
El plan gratuito cubre proyectos personales. El pago por uso escala sin necesidad de tarjeta.
Every block a BNB Smart Chain (BSC) node rejects as invalid lands in a short list, and debug_getBadBlocks reads that list back. Each entry carries the block's hash, its decoded header, and the raw RLP a peer actually sent, so an operator can see precisely what malformed candidate hit the node and why it bounced. BSC runs Proof-of-Staked-Authority consensus, sealing a block about every three seconds with BNB covering the gas, which means a bad block usually points at a misbehaving validator rather than ordinary load. Query it on chain ID 56 at https://bsc.therpc.io/YOUR_API_KEY. It is a debug-namespace call, so the node has to be started with debug access for it to answer.
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 BNB Smart Chain playground.
| Código | Mensaje | Causa |
|---|---|---|
-32601 | Method not found | debug namespace not enabled on the node, or client does not implement this method. |