API Reference

tracer

The tracer object has the following fields:

  • tracer - (optional) The type of tracer. It can be callTracer or prestateTracer.
    • callTracer - Keeps track of all call frames, including depth 0 calls, that are made during a transaction.
    • prestateTracer - Replays the transaction and tracks every part of the state that occurred during the transaction.
    • If not set, an execution trace for every EVM step is generated.
  • tracerConfig - (optional) An object to specify the configurations of the tracer.
    • onlyTopCall - 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.

EXAMPLE

{
 "tracer": "callTracer",
 "tracerConfig": {
  "onlyTopCall": false
 }
}