debug_traceBlockByNumber
Debug and Trace | Monad
debug_traceBlockByNumber | Monad
Monad API method that returns traces for all transactions in a block specified by block number. Available on Monad via Chainstack.
POST
debug_traceBlockByNumber
Monad API method that returns traces for all transactions in a block specified by block number. This method is useful for analyzing all transaction executions within a single block.
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
quantity|tag— the block number as a hexadecimal string, or one of the following block tags:latest— the most recent block in the canonical chainearliest— the genesis blockpending— the pending state/transactions
object(optional) — the tracer options:tracer— the tracer to use (e.g.,callTracer,prestateTracer)tracerConfig— configuration options for the tracertimeout— timeout for the trace operation
Response
result— an array of trace results, one for each transaction in the block. The structure of each trace depends on the tracer used.
debug_traceBlockByNumber code examples
Use case
A practical use case fordebug_traceBlockByNumber is building block analysis tools that need to understand the complete execution flow of all transactions in a block, such as MEV detection or security monitoring systems.Last modified on May 18, 2026