Skip to main content
Returns traces created at given block. This method will use 80 Compute Units.
Traces need the state of the traced block, so World Chain Mainnet can trace the last 10,064 blocks, about 5.6 hours at World Chain’s 2-second block time. Older blocks return JSON-RPC error -32603 with a message that contains insufficient changesets to revert to block.

Parameters

blockNumber - String - Required - The block number as a string in hexadecimal format or tags. The supported tag values include:
  • earliest - For the earliest/genesis block
  • latest for the latest mined block
  • safe for the latest block derived from data posted to Ethereum
  • finalized for the latest block whose Ethereum (L1) data is finalized

Returns

array - The block traces, which have the following fields (all return types are hexadecimal unless otherwise noted):
  • action - object The ParityTrace action object containing call details
    • from - string - The address of the sender
    • callType - string - The type of method such as call, staticcall, delegatecall
    • gas - string - The gas provided by the sender, encoded as hexadecimal
    • input - string - The input data sent along with the transaction
    • to - string - The address of the receiver
    • value - string - The integer of the value sent with this transaction, encoded as hexadecimal
  • blockHash - string - The hash of the block where this transaction was in
  • blockNumber - integer - The block number where this transaction was in
  • result - object - The ParityTrace result object containing execution outcome
    • gasUsed - string -The amount of gas used by this specific transaction
    • output - string - The return value of the contract call, empty if no RETURN executed
  • subtraces - integer - The number of subtraces (internal calls) made by the transaction
  • traceAddress - array - The list of addresses where the call executed, including parent addresses and call order
  • transactionHash - string - The hash of the transaction
  • transactionPosition - integer - The transaction index position within the block
  • type - string - The type of the trace, such as call or create
  • error - string - The error message, if any