> ## Documentation Index
> Fetch the complete documentation index at: https://docs.chainstack.com/llms.txt
> Use this file to discover all available pages before exploring further.

# debug_traceBlockByNumber | Ronin

> The debug_traceBlockByNumber method allows for tracing the execution of all transactions in a specified block. Ronin via Chainstack.

The `debug_traceBlockByNumber` method allows for tracing the execution of all transactions in a specified block. This method is essential for understanding the behavior of transactions and smart contracts within a block, providing insights into executed operations, gas used, and state changes.

## Parameters

* `blockNumber` - The number of the block to trace. This can be a hexadecimal value or one of the special strings "latest", "earliest", or "pending".

## Response

* `result` - An object containing detailed execution traces for each transaction in the block.

## Use case

This method is invaluable for debugging smart contracts, analyzing transaction execution, and conducting security audits of contract interactions. It offers a granular view of the EVM (Ethereum Virtual Machine) execution process.


## OpenAPI

````yaml openapi/ronin_node_api/debug_traceBlockByNumber.json POST /3997273fc956a67dc6982384500e669e
openapi: 3.0.0
info:
  title: debug_traceBlockByNumber
  version: 1.0.0
  description: >-
    Traces a block by its number, providing detailed execution traces of all
    transactions contained within the  block.
servers:
  - url: https://ronin-mainnet.core.chainstack.com
security: []
paths:
  /3997273fc956a67dc6982384500e669e:
    post:
      tags:
        - debug
      summary: Trace block by number
      operationId: traceBlockByNumber
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                id:
                  type: integer
                  default: 1
                jsonrpc:
                  type: string
                  default: '2.0'
                method:
                  type: string
                  default: debug_traceBlockByNumber
                params:
                  type: array
                  items:
                    oneOf:
                      - type: string
                        enum:
                          - latest
                          - earliest
                          - pending
                      - type: string
                  default:
                    - latest
      responses:
        '200':
          description: Detailed execution traces of the block
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                  id:
                    type: integer
                  result:
                    type: object

````