Parameters
- transactionHashstringREQUIRED
The transaction hash that needs to be traced, encoded in hexadecimal format
- 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 occurred 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
- objectobject
A call trace object
- beforeEVMTransfersarray
An array representing EVM transfers that occurred before the execution of the transaction
- purposestring
(Optional) The purpose of the EVM transfer
- fromstring
(Optional) The Ethereum address initiating the transfer
- tostring
(Optional) The Ethereum address receiving the transfer
- valuestring
(Optional) The value of the transfer, specified in hexadecimal format (Wei)
- afterEVMTransfersarray
An array representing EVM transfers that occurred after the execution of the transaction
- purposestring
(Optional) The purpose of the EVM transfer
- fromstring
(Optional) The Ethereum address initiating the transfer
- tostring
(Optional) The Ethereum address receiving the transfer
- valuestring
(Optional) The value of the transfer, specified in hexadecimal format (Wei)
- 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)
- 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"afterEVMTransfers": [6{7"from": null,8"purpose": "gasRefund",9"to": "0x54Bf055108F9Af5dA4f4DFe2EdA125842Acae622",10"value": "0xbf3ab487150"11},12{13"from": null,14"purpose": "tip",15"to": "0x6CBb552855CE5Eb70af49B76a8048be8E3799A05",16"value": "0x1806e8101b0"17},18{19"from": null,20"purpose": "feeCollection",21"to": "0x6CBb552855CE5Eb70af49B76a8048be8E3799A05",22"value": "0x2f9199f9100"23},24{25"from": null,26"purpose": "feeCollection",27"to": "0xa4B00000000000000000000000000000000000F6",28"value": "0x0"29}30],31"beforeEVMTransfers": [32{33"from": "0x54Bf055108F9Af5dA4f4DFe2EdA125842Acae622",34"purpose": "feePayment",35"to": null,36"value": "0x106d33690400"37}38],39"from": "0x54bf055108f9af5da4f4dfe2eda125842acae622",40"gas": "0x1d4c0",41"gasUsed": "0x7fb1",42"input": "0x005e7c42e4464686e518cf3b3b37478f6d60600000000000000001a1b22ab60f00377b2bde7b7b0000000000000000000000000000000000000001a1b22ab60f0102d9167ca3a30000000000000000000000000000000000000001a1b22ab60f02",43"to": "0xe844701934d9c6085b292e428f41b911cc0b3872",44"type": "CALL",45"value": "0x0"46}47}
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"afterEVMTransfers": [6{7"from": null,8"purpose": "gasRefund",9"to": "0x54Bf055108F9Af5dA4f4DFe2EdA125842Acae622",10"value": "0xbf3ab487150"11},12{13"from": null,14"purpose": "tip",15"to": "0x6CBb552855CE5Eb70af49B76a8048be8E3799A05",16"value": "0x1806e8101b0"17},18{19"from": null,20"purpose": "feeCollection",21"to": "0x6CBb552855CE5Eb70af49B76a8048be8E3799A05",22"value": "0x2f9199f9100"23},24{25"from": null,26"purpose": "feeCollection",27"to": "0xa4B00000000000000000000000000000000000F6",28"value": "0x0"29}30],31"beforeEVMTransfers": [32{33"from": "0x54Bf055108F9Af5dA4f4DFe2EdA125842Acae622",34"purpose": "feePayment",35"to": null,36"value": "0x106d33690400"37}38],39"from": "0x54bf055108f9af5da4f4dfe2eda125842acae622",40"gas": "0x1d4c0",41"gasUsed": "0x7fb1",42"input": "0x005e7c42e4464686e518cf3b3b37478f6d60600000000000000001a1b22ab60f00377b2bde7b7b0000000000000000000000000000000000000001a1b22ab60f0102d9167ca3a30000000000000000000000000000000000000001a1b22ab60f02",43"to": "0xe844701934d9c6085b292e428f41b911cc0b3872",44"type": "CALL",45"value": "0x0"46}47}