starknet_traceBlockTransactions | Starknet

๐Ÿ“˜

Starknet OpenRPC spec

For the latest version of the publicly maintained OpenRPC spec, see the Starknet specs GitHub repo.

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.

๐Ÿ‘

Get you own node endpoint today

Start 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

  • 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, accept integer.
    • block_tag โ€” latest for the latest one added to the chain or pending for the pending one.

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.

Deprecated feeder gateway method

The feeder gateway was deprecated on December 11, 2023.

Example of the call you had to make to the feeder gateway before the deprecation:

curl 'https://alpha-mainnet.starknet.io/feeder_gateway/get_block_traces?blockNumber=456600'
Language
Click Try It! to start a request and see the response here!