Parameters
- blockHashstringREQUIRED
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
- callTracerstring
The calltracer keeps track of all call frames, including depth 0 calls, that are made during a transaction
- prestateTracerstring
The prestateTracer replays the transaction and tracks every part of state that occured during the 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
- resultobject
The result object which contains the following fields:
- 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
- callsobject
(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)
- valuestring
The integer of the value sent with this transaction
- typestring
The type of the call
1{2"jsonrpc": "2.0",3"result": [4{5"result": {6"type": "CALL",7"from": "0x5cfce8669c672df27e3d6cad41859328932ec278",8"to": "0x5cfce8669c672df27e3d6cad41859328932ec278",9"value": "0x0",10"gas": "0x5208",11"gasUsed": "0x5208",12"input": "0x"13},14"txHash": "0xff4893e5a3d7c9669bbf1351fb1bf96ca1649fd0e759f7f354f7eb3c5dd95aa1"15}16],17"id": 118}
1{2"jsonrpc": "2.0",3"result": [4{5"result": {6"type": "CALL",7"from": "0x5cfce8669c672df27e3d6cad41859328932ec278",8"to": "0x5cfce8669c672df27e3d6cad41859328932ec278",9"value": "0x0",10"gas": "0x5208",11"gasUsed": "0x5208",12"input": "0x"13},14"txHash": "0xff4893e5a3d7c9669bbf1351fb1bf96ca1649fd0e759f7f354f7eb3c5dd95aa1"15}16],17"id": 118}