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
- result
An object containing detailed information about the traced transaction
- from
The address the transaction is sent from
- gas
The integer of the gas provided for the transaction execution
- gasUsed
The integer of the gas used
- to
The address the transaction is directed to
- input
The data given at the time of input
- calls
An array containing information about internal calls made during the transaction
- from
The address making the call
- gas
The gas limit specified for the call
- gasUsed
The amount of gas used during the call
- to
The address being called
- input
The input data for the call
- output
(Optional) The output data of the call
- value
The value (in Wei) sent with the call
- type
The type of call (e.g., CALL or STATICCALL)
- calls
The sub-calls associated with the call
- value
The integer of the value sent with this transaction
- type
The type of the call
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"from": "0xdeaddeaddeaddeaddeaddeaddeaddeaddead0001",6"gas": "0xf4240",7"gasUsed": "0xb755",8"to": "0x4200000000000000000000000000000000000015",9"input": "0x015d8eb900000000000000000000000000000000000000000000000000000000004cfa0c00000000000000000000000000000000000000000000000000000000659b8dec0000000000000000000000000000000000000000000000000000000606ff00a43b9816dfab1d1574da48c53c90f3f8354b5ae0cf900f37adfa89f1d4950a1cde0000000000000000000000000000000000000000000000000000000000000003000000000000000000000000ba26fee2fa917443e05e65de8d4350bcd2f5922200000000000000000000000000000000000000000000000000000000000000bc00000000000000000000000000000000000000000000000000000000000a6fe0",10"calls": [11{12"from": "0x4200000000000000000000000000000000000015",13"gas": "0xe99d7",14"gasUsed": "0x4a1d",15"to": "0xc0d3c0d3c0d3c0d3c0d3c0d3c0d3c0d3c0d30015",16"input": "0x015d8eb900000000000000000000000000000000000000000000000000000000004cfa0c00000000000000000000000000000000000000000000000000000000659b8dec0000000000000000000000000000000000000000000000000000000606ff00a43b9816dfab1d1574da48c53c90f3f8354b5ae0cf900f37adfa89f1d4950a1cde0000000000000000000000000000000000000000000000000000000000000003000000000000000000000000ba26fee2fa917443e05e65de8d4350bcd2f5922200000000000000000000000000000000000000000000000000000000000000bc00000000000000000000000000000000000000000000000000000000000a6fe0",17"value": "0x0",18"type": "DELEGATECALL"19}20],21"value": "0x0",22"type": "CALL"23}24}
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"from": "0xdeaddeaddeaddeaddeaddeaddeaddeaddead0001",6"gas": "0xf4240",7"gasUsed": "0xb755",8"to": "0x4200000000000000000000000000000000000015",9"input": "0x015d8eb900000000000000000000000000000000000000000000000000000000004cfa0c00000000000000000000000000000000000000000000000000000000659b8dec0000000000000000000000000000000000000000000000000000000606ff00a43b9816dfab1d1574da48c53c90f3f8354b5ae0cf900f37adfa89f1d4950a1cde0000000000000000000000000000000000000000000000000000000000000003000000000000000000000000ba26fee2fa917443e05e65de8d4350bcd2f5922200000000000000000000000000000000000000000000000000000000000000bc00000000000000000000000000000000000000000000000000000000000a6fe0",10"calls": [11{12"from": "0x4200000000000000000000000000000000000015",13"gas": "0xe99d7",14"gasUsed": "0x4a1d",15"to": "0xc0d3c0d3c0d3c0d3c0d3c0d3c0d3c0d3c0d30015",16"input": "0x015d8eb900000000000000000000000000000000000000000000000000000000004cfa0c00000000000000000000000000000000000000000000000000000000659b8dec0000000000000000000000000000000000000000000000000000000606ff00a43b9816dfab1d1574da48c53c90f3f8354b5ae0cf900f37adfa89f1d4950a1cde0000000000000000000000000000000000000000000000000000000000000003000000000000000000000000ba26fee2fa917443e05e65de8d4350bcd2f5922200000000000000000000000000000000000000000000000000000000000000bc00000000000000000000000000000000000000000000000000000000000a6fe0",17"value": "0x0",18"type": "DELEGATECALL"19}20],21"value": "0x0",22"type": "CALL"23}24}