The tracer object has the following fields:
tracer
- (optional) The type of tracer. It can becallTracer
orprestateTracer
.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 totrue
, 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
}
}