Some blocks may return an empty array of traces. This is expected behavior.
Parameters
- blockNumberstringREQUIRED
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, and pending for the pending state/transactions
- objectobjectREQUIRED
The tracer object with the following fields:
- tracerstring
The type of tracer. Currently supports callTracer
- callTracerstring
The calltracer keeps track of all call frames, including depth 0 calls, that are made during a transaction
- 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 transaction trace result objects
- txHashstring
The hash of the transaction
- resultobject
The result of the transaction trace
- 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
(Optional) The data which is returned as an output
- valuestring
The integer of the value sent with this transaction
- typestring
The type of the call
- callsarray
(Optional) An array containing information about internal calls made during the transaction
- fromstring
The address making the call
- gasstring
The gas limit specified for the call
- gasUsedstring
The amount of gas used during the call
- tostring
The address being called
- inputstring
The input data for the call
- outputstring
(Optional) The output data of the call
- valuestring
The value (in Wei) sent with the call
- typestring
The type of call (e.g., CALL or STATICCALL)
- callsarray
(Optional) The sub-calls associated with the call