Parameters
- blockHashstringREQUIRED
The hash of the block to be traced
- 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
Returns
- resultobject
The result object which contains the following fields:
- txHashstring
The hash of the transaction being traced
- 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)
- 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{6"txHash": "0x00a0a7500a26ef0191512b140fc76380c4c7b3bb7bd9f46f84e742c4fa8a2fb4",7"result": {8"from": "0xdeaddeaddeaddeaddeaddeaddeaddeaddead0001",9"gas": "0xf4240",10"gasUsed": "0xc0fb",11"to": "0x4200000000000000000000000000000000000015",12"input": "0x440a5e20000f424000000000000000000000000000000000682dbeb3000000000157cc15000000000000000000000000000000000000000000000000000000002fe797cc00000000000000000000000000000000000000000000000000000000000000017efcda0a673ec08ac5f11eb6fb4bb4fe57d430f5daa78714adee69c585a93d0500000000000000000000000065115c6d23274e0a29a63b69130efe901aa52e7a",13"calls": [14{15"from": "0x4200000000000000000000000000000000000015",16"gas": "0xe9b99",17"gasUsed": "0x558c",18"to": "0x07dbe8500fc591d1852b76fee44d5a05e13097ff",19"input": "0x440a5e20000f424000000000000000000000000000000000682dbeb3000000000157cc15000000000000000000000000000000000000000000000000000000002fe797cc00000000000000000000000000000000000000000000000000000000000000017efcda0a673ec08ac5f11eb6fb4bb4fe57d430f5daa78714adee69c585a93d0500000000000000000000000065115c6d23274e0a29a63b69130efe901aa52e7a",20"value": "0x0",21"type": "DELEGATECALL"22}23],24"value": "0x0",25"type": "CALL"26}27},28{29"txHash": "0xdcfc7cf9494b4d8666f8c6b01300c23c4eafc1dac6ccf2a04d97d07db545b825",30"result": {31"from": "0xf0e26ef0a6f90dc716d476d5342d78777fdcdf9e",32"gas": "0xc384",33"gasUsed": "0x7f90",34"to": "0x7f4babd2c7d35221e72ab67ea72cba99573a0089",35"input": "0x3851496fd4d402de8a95566c70bd0a65ce46e90afb517a961be270d6318c0919",36"calls": [37{38"from": "0x7f4babd2c7d35221e72ab67ea72cba99573a0089",39"gas": "0x4979",40"gasUsed": "0x0",41"to": "0xf70da97812cb96acdf810712aa562db8dfa3dbef",42"input": "0x",43"value": "0x3faa25226000",44"type": "CALL"45}46],47"value": "0x3faa25226000",48"type": "CALL"49}50},51{52"txHash": "0xeb6c3e5bf35a4de79033dd95f3a0373068dd3b429022e151fa41c0501f7dfc00",53"result": {54"from": "0x5582f3ecb831f2ce8d5f745b394e34b3a321a7c4",55"gas": "0xd110",56"gasUsed": "0x6731",57"to": "0xaa40c0c7644e0b2b224509571e10ad20d9c4ef28",58"input": "0x095ea7b3000000000000000000000000623f2774d9f27b59bc6b954544487532ce79d9df0000000000000000000000000000000000000000000000000000000000000000",59"output": "0x0000000000000000000000000000000000000000000000000000000000000001",60"value": "0x0",61"type": "CALL"62}63}64]65}
1{2"jsonrpc": "2.0",3"id": 1,4"result": [5{6"txHash": "0x00a0a7500a26ef0191512b140fc76380c4c7b3bb7bd9f46f84e742c4fa8a2fb4",7"result": {8"from": "0xdeaddeaddeaddeaddeaddeaddeaddeaddead0001",9"gas": "0xf4240",10"gasUsed": "0xc0fb",11"to": "0x4200000000000000000000000000000000000015",12"input": "0x440a5e20000f424000000000000000000000000000000000682dbeb3000000000157cc15000000000000000000000000000000000000000000000000000000002fe797cc00000000000000000000000000000000000000000000000000000000000000017efcda0a673ec08ac5f11eb6fb4bb4fe57d430f5daa78714adee69c585a93d0500000000000000000000000065115c6d23274e0a29a63b69130efe901aa52e7a",13"calls": [14{15"from": "0x4200000000000000000000000000000000000015",16"gas": "0xe9b99",17"gasUsed": "0x558c",18"to": "0x07dbe8500fc591d1852b76fee44d5a05e13097ff",19"input": "0x440a5e20000f424000000000000000000000000000000000682dbeb3000000000157cc15000000000000000000000000000000000000000000000000000000002fe797cc00000000000000000000000000000000000000000000000000000000000000017efcda0a673ec08ac5f11eb6fb4bb4fe57d430f5daa78714adee69c585a93d0500000000000000000000000065115c6d23274e0a29a63b69130efe901aa52e7a",20"value": "0x0",21"type": "DELEGATECALL"22}23],24"value": "0x0",25"type": "CALL"26}27},28{29"txHash": "0xdcfc7cf9494b4d8666f8c6b01300c23c4eafc1dac6ccf2a04d97d07db545b825",30"result": {31"from": "0xf0e26ef0a6f90dc716d476d5342d78777fdcdf9e",32"gas": "0xc384",33"gasUsed": "0x7f90",34"to": "0x7f4babd2c7d35221e72ab67ea72cba99573a0089",35"input": "0x3851496fd4d402de8a95566c70bd0a65ce46e90afb517a961be270d6318c0919",36"calls": [37{38"from": "0x7f4babd2c7d35221e72ab67ea72cba99573a0089",39"gas": "0x4979",40"gasUsed": "0x0",41"to": "0xf70da97812cb96acdf810712aa562db8dfa3dbef",42"input": "0x",43"value": "0x3faa25226000",44"type": "CALL"45}46],47"value": "0x3faa25226000",48"type": "CALL"49}50},51{52"txHash": "0xeb6c3e5bf35a4de79033dd95f3a0373068dd3b429022e151fa41c0501f7dfc00",53"result": {54"from": "0x5582f3ecb831f2ce8d5f745b394e34b3a321a7c4",55"gas": "0xd110",56"gasUsed": "0x6731",57"to": "0xaa40c0c7644e0b2b224509571e10ad20d9c4ef28",58"input": "0x095ea7b3000000000000000000000000623f2774d9f27b59bc6b954544487532ce79d9df0000000000000000000000000000000000000000000000000000000000000000",59"output": "0x0000000000000000000000000000000000000000000000000000000000000001",60"value": "0x0",61"type": "CALL"62}63}64]65}