trace_filter

Returns traces matching given filter.

This method will use 80 Compute Units.


Parameters

object - object - The filter object

  • fromBlock - string - The starting block number for the filter in hexadecimal format

  • toBlock - string - The ending block number for the filter in hexadecimal format

  • fromAddress - array - An array of sender addresses to filter by

  • toAddress - array - An array of receiver addresses to filter by

  • after - integer - The offset trace number for pagination

  • count - integer - The number of traces to display in a batch

Returns

result - array - An array of trace objects that match the given filter

  • action - object - The trace action object containing details of the call

    • from - string - The address of the sender

    • callType - string - The type of method such as call, delegatecall, staticcall

    • gas - string - The gas provided by the sender encoded as hexadecimal

    • input - string - The data sent along with the transaction

    • to - string - The address of the receiver

    • value - string - The value sent with this transaction encoded as hexadecimal

  • blockHash - string - The hash of the block containing this transaction

  • blockNumber - string - The block number containing this transaction encoded as hexadecimal

  • result - object - The execution result object of the trace

    • gasUsed - string - The amount of gas used by this specific trace

    • output - string - The value returned by the call, empty if no RETURN was executed

  • subtraces - integer - The number of subtraces (internal calls) in this trace

  • traceAddress - array - The list showing the nested call structure of this trace

  • transactionHash - string - The hash of the transaction

  • transactionPosition - integer - The transaction index position within the block

  • type - string - The type of trace, such as call or create

Last updated

Was this helpful?