Skip to main content
Traces every transaction in the block specified by block hash and returns the tracer result for each one. Note: Arbitrum serves recent state only, so trace a recent block. Replace <RECENT_BLOCK_HASH> with the hash of a recent block, for example from eth_getBlockByNumber with latest. See Supported Chains for how far back each network goes. This method will use 80 Compute Units.

Parameters

blockHash - String - Required - The block hash. object - Object - Required - The tracer object with the following fields:
  • tracer - String - The type of tracer, options are: callTracer, prestateTracer or flatCallTracer.
    • callTracer - String - The callTracer keeps track of all call frames, including depth - calls, that are made during a transaction.
    • prestateTracer - String - The prestateTracer replays the transaction and tracks every part of state that occurred during the transaction.
    • flatCallTracer - String - The flatCallTracer is a specific type of tracer that provides a flattened view of all calls made during transaction execution. It offers a simplified output compared to the standard callTracer, in the same format as the trace_ namespace used by other EVM clients.
  • tracerConfig - Object (Optional) - The object to specify the configurations of the tracer.
    • onlyTopCall - Boolean - When set to true, this will only trace the primary (top-level) call and not any sub-calls. It eliminates the additional processing for each call frame.

Returns

result - An array of transaction objects for that block, each containing:
  • txHash - The transaction hash of the transaction
  • result - An object containing detailed information about the traced transaction
    • beforeEVMTransfers - An array representing EVM transfers that occurred before the execution of the transaction
      • purpose - (Optional) The purpose of the EVM transfer
      • from - (Optional) The Ethereum address initiating the transfer
      • to - (Optional) The Ethereum address receiving the transfer
      • value - (Optional) The value of the transfer, specified in hexadecimal format (Wei)
    • afterEVMTransfers - An array representing EVM transfers that occurred after the execution of the transaction
      • Optional fields are the same as beforeEVMTransfers above
    • from - The address the transaction is sent from.
    • gas - The integer of the gas provided for the transaction execution.
    • gasUsed - The integer of the gas used.
    • to - The address the transaction is directed to.
    • input - The data given at the time of input.
    • value - The integer of the value sent with this transaction.
    • type - The type of call.
  • calls - A list of sub-calls.