trace_call

Executes the given call and returns a number of possible traces for it.

📘

Note: Available to paying Infura Customers


Description

Executes the given call and returns a number of possible traces for it. Use this API to retrieve detailed information about the transaction execution, including state changes and logs generated during the process.

Parameters

  • transaction call object [Required] with the following keys and their values:
    • from: 20 bytes. The address the transaction is sent from.
    • to: 20 bytes. The address the transaction is directed to.
    • gas: [optional] The hexadecimal value of the gas provided for the transaction execution.
    • gasPrice: [optional] The hexadecimal value of the gasPrice used for each paid gas.
    • maxPriorityFeePerGas: [optional] Maximum fee, in Wei, the sender is willing to pay per gas above the base fee. See EIP-1559 transactions.
    • maxFeePerGas: [optional] Maximum total fee (base fee + priority fee), in Wei, the sender is willing to pay per
    • gas. See EIP-1559 transactions.
    • value: [optional] The hexadecimal equivalent of the value sent with this transaction.
    • data: [optional] The hash of the method signature and encoded parameters. See the Ethereum contract ABI specification.
  • block parameter : [Required] The hexadecimal block number, or the string latest, earliest, or pending. See the default block parameter.
  • options: A list of tracing options. Tracing options are trace and stateDiff.

Returns

  • result: A trace object that includes the trace and stateDiff.

Language
Authorization
Header
Click Try It! to start a request and see the response here!