The tracer object with the following fields:
tracer
- string - The type of tracer. It could becallTracer
orprestateTracer
.callTracer
- The calltracer keeps track of all call frames, including depth 0 calls, that are made during a transactionprestateTracer
- The prestateTracer replays the transaction and tracks every part of state that occured during the transaction- If not set, generate an execution trace for every evm step.
tracerConfig
- object - The object to specify the configurations of the traceronlyTopCall
- 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
Example
{
"tracer": "callTracer",
"tracerConfig": {
"onlyTopCall": false
}
}