Parameters
- transactionHashstringREQUIRED
The transaction hash that needs to be traced, encoded in hexadecimal format
- objectobject
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
- timeoutstring
A string of decimal integers that overrides the JavaScript-based tracing calls default timeout of 5 seconds
Returns
- 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
- callsarray
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
The sub-calls associated with the call
- valuestring
The integer of the value sent with this transaction
- typestring
The type of the call
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"type": "CALL",6"from": "0xdeaddeaddeaddeaddeaddeaddeaddeaddead0001",7"to": "0x4200000000000000000000000000000000000015",8"value": "0x0",9"gas": "0xf4240",10"gasUsed": "0xe092",11"input": "0x3db6be2b00000558000c5fc500000000000000000000000069cfa61f00000000017a667a000000000000000000000000000000000000000000000000000000000954bc5500000000000000000000000000000000000000000000000000000000008fd10a2b83186f11291c21b0132387e7f254d7c7284ef8153cb02cb6cfad9bd52d55bf0000000000000000000000001ffda89c755f6d4af069897d77ccabb580fd412a000000000000013aa2d138370190",12"calls": [13{14"type": "DELEGATECALL",15"from": "0x4200000000000000000000000000000000000015",16"to": "0x3ba4007f5c922fbb33c454b41ea7a1f11e83df2c",17"gas": "0xe9ad4",18"gasUsed": "0x745b",19"input": "0x3db6be2b00000558000c5fc500000000000000000000000069cfa61f00000000017a667a000000000000000000000000000000000000000000000000000000000954bc5500000000000000000000000000000000000000000000000000000000008fd10a2b83186f11291c21b0132387e7f254d7c7284ef8153cb02cb6cfad9bd52d55bf0000000000000000000000001ffda89c755f6d4af069897d77ccabb580fd412a000000000000013aa2d138370190"20}21]22}23}
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"type": "CALL",6"from": "0xdeaddeaddeaddeaddeaddeaddeaddeaddead0001",7"to": "0x4200000000000000000000000000000000000015",8"value": "0x0",9"gas": "0xf4240",10"gasUsed": "0xe092",11"input": "0x3db6be2b00000558000c5fc500000000000000000000000069cfa61f00000000017a667a000000000000000000000000000000000000000000000000000000000954bc5500000000000000000000000000000000000000000000000000000000008fd10a2b83186f11291c21b0132387e7f254d7c7284ef8153cb02cb6cfad9bd52d55bf0000000000000000000000001ffda89c755f6d4af069897d77ccabb580fd412a000000000000013aa2d138370190",12"calls": [13{14"type": "DELEGATECALL",15"from": "0x4200000000000000000000000000000000000015",16"to": "0x3ba4007f5c922fbb33c454b41ea7a1f11e83df2c",17"gas": "0xe9ad4",18"gasUsed": "0x745b",19"input": "0x3db6be2b00000558000c5fc500000000000000000000000069cfa61f00000000017a667a000000000000000000000000000000000000000000000000000000000954bc5500000000000000000000000000000000000000000000000000000000008fd10a2b83186f11291c21b0132387e7f254d7c7284ef8153cb02cb6cfad9bd52d55bf0000000000000000000000001ffda89c755f6d4af069897d77ccabb580fd412a000000000000013aa2d138370190"20}21]22}23}