Parameters
- blockNumberstring
The block number as a string in hexadecimal format or tags. The supported tag values include earliest for the earliest/genesis block, latest for the latest mined block, pending for the pending state/transactions, safe for the most recent secure block, and finalized for the most recent secure block accepted by more than 2/3 of validators
- objectobjectREQUIRED
The tracer object with the following fields:
- tracerstring
The type of tracer. It could be callTracer or prestateTracer
- tracerConfigobject
The object to specify the configurations of the tracer
- onlyTopCallboolean
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
Returns
- resultarray
An array of trace results for each transaction in the block.
- txHashstring
The hash of the transaction being traced.
- resultobject
An object containing detailed information about the traced transaction.
- fromstring
The address the transaction is sent from.
- gasstring
The integer of the gas provided for the transaction execution.
- gasUsedstring
The integer of the gas used.
- tostring
The address the transaction is directed to.
- inputstring
The data given at the time of input.
- outputstring
The output data of the call.
- callsarray
An array containing information about internal calls made during the transaction.
- valuestring
The integer of the value sent with this transaction.
- typestring
The type of the call.