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 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
- 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"beforeEVMTransfers": [6{7"purpose": "feePayment",8"from": "0xF4e84FEE3AA08AEc9c2580260311D28de371d937",9"to": null,10"value": "0x5751fa1a600"11}12],13"afterEVMTransfers": [14{15"purpose": "gasRefund",16"from": null,17"to": "0xF4e84FEE3AA08AEc9c2580260311D28de371d937",18"value": "0x4d118ba98f0"19},20{21"purpose": "feeCollection",22"from": null,23"to": "0x5a2B80a9b7effc06129bD5462D77BC20A8A59BE7",24"value": "0x99f2975400"25},26{27"purpose": "feeCollection",28"from": null,29"to": "0xbC5C3a7Adecf54D34169fd90dbD1B7d3142DF067",30"value": "0x3f0e940"31},32{33"purpose": "feeCollection",34"from": null,35"to": "0xa4B00000000000000000000000000000000000F6",36"value": "0xa105ecfd0"37}38],39"from": "0xf4e84fee3aa08aec9c2580260311d28de371d937",40"gas": "0x493e0",41"gasUsed": "0x8995",42"to": "0x4e5b9fc9df660c355743f8b6dd79389db8dcd836",43"input": "0xb6621842000000000000000000000000000000000000000000000000000000039cf985fd0000000000000000000000000000000000000000000000000000000000000000",44"value": "0x0",45"type": "CALL"46}47}
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"beforeEVMTransfers": [6{7"purpose": "feePayment",8"from": "0xF4e84FEE3AA08AEc9c2580260311D28de371d937",9"to": null,10"value": "0x5751fa1a600"11}12],13"afterEVMTransfers": [14{15"purpose": "gasRefund",16"from": null,17"to": "0xF4e84FEE3AA08AEc9c2580260311D28de371d937",18"value": "0x4d118ba98f0"19},20{21"purpose": "feeCollection",22"from": null,23"to": "0x5a2B80a9b7effc06129bD5462D77BC20A8A59BE7",24"value": "0x99f2975400"25},26{27"purpose": "feeCollection",28"from": null,29"to": "0xbC5C3a7Adecf54D34169fd90dbD1B7d3142DF067",30"value": "0x3f0e940"31},32{33"purpose": "feeCollection",34"from": null,35"to": "0xa4B00000000000000000000000000000000000F6",36"value": "0xa105ecfd0"37}38],39"from": "0xf4e84fee3aa08aec9c2580260311d28de371d937",40"gas": "0x493e0",41"gasUsed": "0x8995",42"to": "0x4e5b9fc9df660c355743f8b6dd79389db8dcd836",43"input": "0xb6621842000000000000000000000000000000000000000000000000000000039cf985fd0000000000000000000000000000000000000000000000000000000000000000",44"value": "0x0",45"type": "CALL"46}47}