debug_traceBadBlock
Robinhood Chain node API
debug_traceBadBlock | Robinhood
Robinhood Chain API method that traces all transactions in a block that has been marked as ‘bad’ by the node. Chainstack Robinhood Chain reference.
POST
debug_traceBadBlock
Robinhood Chain API method that traces all transactions in a block that has been marked as “bad” by the node. Bad blocks are blocks that failed validation during import. This method works similarly to
debug_traceBlockByHash but looks up the block from the bad blocks cache instead of the canonical chain. It is primarily used for diagnosing why a block was rejected.
Learn how to deploy a node with the debug and trace API methods enabled.
Get your own node endpoint todayStart for free and get your app to production levels immediately. No credit card required.You can sign up with your GitHub, X, Google, or Microsoft account.
Parameters
hash— the hash of the bad block to trace.object— (optional) an object identifying the type of tracer and its configuration:tracer— the name of the tracer to use (callTracer,prestateTracer,4byteTracer, or a custom JS tracer).timeout— the timeout for the tracing operation. Defaults to5s.reexec— the number of blocks to re-execute to reconstruct historical state. Defaults to 128.
Response
result— an array of trace results, one per transaction in the block:txHash— the hash of the transaction.result— the trace output for the transaction (format depends on the tracer used).error— an error message if the transaction trace failed.
debug_traceBadBlock code examples
Body
application/json
Last modified on July 18, 2026