BNB Smart Chain
准备好在生产环境中调用了吗?
免费套餐涵盖个人项目。按量付费,无需绑卡即可扩展。
BNB Smart Chain
免费套餐涵盖个人项目。按量付费,无需绑卡即可扩展。
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.
此方法不需要任何参数,传入空数组 [] 即可。
| 类型 | 描述 |
|---|---|
| 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.
| 错误码 | 错误信息 | 原因 |
|---|---|---|
-32601 | Method not found | debug namespace not enabled on the node, or client does not implement this method. |