Parameters
- blockHashstring
The hash of the block to be traced
- 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.
- errorstring
The error when the transaction failed, for example execution reverted.
- revertReasonstring
The revert reason when the transaction reverted, for example GAME:INVALID.
- callsarray
An array of internal call frames. Omitted when the transaction has no sub-calls.
- fromstring
The address the call is sent from.
- gasstring
The gas provided for the call, as a hexadecimal string.
- gasUsedstring
The gas used by the call, as a hexadecimal string.
- tostring
The address the call is directed to.
- inputstring
The call input data, as a hexadecimal string.
- outputstring
The call output data, as a hexadecimal string.
- typestring
The call type. Observed values include CALL, STATICCALL, and DELEGATECALL.
- valuestring
The value sent with the call, as a hexadecimal string.
- errorstring
The error when the call failed, for example execution reverted.
- revertReasonstring
The revert reason when the call reverted, for example GAME:INVALID.
- callsarray
Nested sub-calls. Each item uses the same internal call frame shape.
- valuestring
The integer of the value sent with this transaction.
- typestring
The call type. Observed values include CALL, STATICCALL, and DELEGATECALL.