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 gas provided for the transaction execution
- gasUsedstring
The gas consumed by the transaction
- tostring
The address the transaction is directed to
- inputstring
The input data sent with the transaction
- callsarray
An array containing internal calls made during the transaction
- fromstring
The address initiating 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
- valuestring
The value (in Wei) sent with the call
- typestring
The type of call (e.g., CALL)
- valuestring
The value (in Wei) sent with this transaction
- typestring
The transaction type (e.g., CALL)
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"from": "0x1a2a5e805342d5139111488c59d72832055a3e8f",6"gas": "0x24dce",7"gasUsed": "0x24935",8"to": "0x5362874e334bb5a2c8083a2cf2eb3db6f3d8e33c",9"input": "0x15373e3d000000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000000000000000000000000000000000000000001",10"calls": [11{12"from": "0x5362874e334bb5a2c8083a2cf2eb3db6f3d8e33c",13"gas": "0x1c51a",14"gasUsed": "0xc208",15"to": "0x63d1447d01432e18ac769968fdf78ccc70015172",16"input": "0xfcc77c180000000000000000000000001a2a5e805342d5139111488c59d72832055a3e8f0000000000000000000000000000000000000000000000000000000000000000",17"output": "0x0000000000000000000000000000000000000000000000000000000000000064",18"calls": [19{20"from": "0x63d1447d01432e18ac769968fdf78ccc70015172",21"gas": "0x1992e",22"gasUsed": "0x1419",23"to": "0x403ecf8ba28e58ce4d1847c1c95ac54651fab151",24"input": "0xc2bc2efc0000000000000000000000001a2a5e805342d5139111488c59d72832055a3e8f",25"output": "0x00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000bc6418ce24fd96fe86f799a7f3167dcc2ea028a8562e1d88bf2282abc3992fb1",26"type": "STATICCALL"27},28{29"from": "0x63d1447d01432e18ac769968fdf78ccc70015172",30"gas": "0x178e6",31"gasUsed": "0x71a3",32"to": "0x5cf1bf680fff2ecb146ef977bf46c4cae46ba4c6",33"input": "0x861a34bd0000000000000000000000000000000000000000000000000000000000000002",34"output": "0x0000000000000000000000000000000000000000000000000000000000000064",35"type": "STATICCALL"36}37],38"type": "STATICCALL"39}40],41"value": "0x0",42"type": "CALL"43}44}
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"from": "0x1a2a5e805342d5139111488c59d72832055a3e8f",6"gas": "0x24dce",7"gasUsed": "0x24935",8"to": "0x5362874e334bb5a2c8083a2cf2eb3db6f3d8e33c",9"input": "0x15373e3d000000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000000000000000000000000000000000000000001",10"calls": [11{12"from": "0x5362874e334bb5a2c8083a2cf2eb3db6f3d8e33c",13"gas": "0x1c51a",14"gasUsed": "0xc208",15"to": "0x63d1447d01432e18ac769968fdf78ccc70015172",16"input": "0xfcc77c180000000000000000000000001a2a5e805342d5139111488c59d72832055a3e8f0000000000000000000000000000000000000000000000000000000000000000",17"output": "0x0000000000000000000000000000000000000000000000000000000000000064",18"calls": [19{20"from": "0x63d1447d01432e18ac769968fdf78ccc70015172",21"gas": "0x1992e",22"gasUsed": "0x1419",23"to": "0x403ecf8ba28e58ce4d1847c1c95ac54651fab151",24"input": "0xc2bc2efc0000000000000000000000001a2a5e805342d5139111488c59d72832055a3e8f",25"output": "0x00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000bc6418ce24fd96fe86f799a7f3167dcc2ea028a8562e1d88bf2282abc3992fb1",26"type": "STATICCALL"27},28{29"from": "0x63d1447d01432e18ac769968fdf78ccc70015172",30"gas": "0x178e6",31"gasUsed": "0x71a3",32"to": "0x5cf1bf680fff2ecb146ef977bf46c4cae46ba4c6",33"input": "0x861a34bd0000000000000000000000000000000000000000000000000000000000000002",34"output": "0x0000000000000000000000000000000000000000000000000000000000000064",35"type": "STATICCALL"36}37],38"type": "STATICCALL"39}40],41"value": "0x0",42"type": "CALL"43}44}