> ## 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.

# starknet_traceBlockTransactions | Starknet

> Starknet API method that returns the execution trace of all transactions in a given block. starknet_traceBlockTransactions on Starknet via Chainstack.

> [!NOTE]
>
> **Starknet OpenRPC spec**
>
> For the latest version of the publicly maintained OpenRPC spec, see the [Starknet specs GitHub repo](https://github.com/starkware-libs/starknet-specs).

Starknet API method that returns the execution trace of all transactions in a given block.

It provides a detailed execution trace for each transaction in the specified block. This can be useful for debugging and analysis purposes, as it allows developers to see the exact sequence of operations that were performed during the execution of each transaction.

## Parameters

* `block_id` — the hash of the requested block, or number (height) of the requested block, or a block tag:

  * `block_hash` — hash of the block.
  * `block_number` — block number, as an integer.
  * `block_tag` — `latest` for the latest block finalized by consensus on L2, or `l1_accepted` for the latest block included in a state update on L1 and finalized by consensus on L1. The Starknet spec doesn't allow `pre_confirmed` for this method.

## Response

* `result` — the execution trace of all transactions in the block, represented as a list of transaction traces.

## Use case

A practical use case for `starknet_traceBlockTransactions` is to analyze the execution of transactions in a specific block. This can be useful for debugging purposes, as it allows developers to understand the sequence of operations that were performed during the execution of each transaction.


## OpenAPI

````yaml openapi/starknet_node_api/starknet_traceBlockTransactions.json POST /mt_c524ad9781ae5dccd9ac6f5b0370e
openapi: 3.0.0
info:
  title: starknet
  version: 1.0.0
  contact: {}
servers:
  - url: https://starknet-mainnet.core.chainstack.com
security: []
paths:
  /mt_c524ad9781ae5dccd9ac6f5b0370e:
    post:
      summary: starknet_traceBlockTransactions
      description: starknet_traceBlockTransactions
      operationId: starknetTraceBlockTransactions
      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: starknet_traceBlockTransactions
                params:
                  type: object
                  properties:
                    block_id:
                      type: object
                      properties:
                        block_number:
                          type: integer
                          default: 5000000
              default:
                id: 1
                jsonrpc: '2.0'
                method: starknet_traceBlockTransactions
                params:
                  block_id:
                    block_number: 5000000
      responses:
        '200':
          description: Successful response

````