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
- callsstring
(Optional) 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 CREATE)
- 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"result": {7"from": "0xdeaddeaddeaddeaddeaddeaddeaddeaddead0001",8"gas": "0x5f5e100",9"gasUsed": "0x18d5c",10"to": "0x4200000000000000000000000000000000000015",11"input": "0x098999be000005580000000000000000000000b0000000006980afd7000000000173da0700000000000000000000000000000000000000000000000000000000297fe0b400000000000000000000000000000000000000000000000008c6083ea1d86a98f3cf03142457e0b9b32f2eea471a10466b5ef8abc05ed1d002fbbc81d2b1f3e1000000000000000000000000b98c6b1a805b96707a43e1f1acfa163b68098fa6000000000000000000000000",12"calls": [13{14"from": "0x4200000000000000000000000000000000000015",15"gas": "0x5d61e4f",16"gasUsed": "0x4889",17"to": "0xc0d3c0d3c0d3c0d3c0d3c0d3c0d3c0d3c0d30015",18"input": "0x098999be000005580000000000000000000000b0000000006980afd7000000000173da0700000000000000000000000000000000000000000000000000000000297fe0b400000000000000000000000000000000000000000000000008c6083ea1d86a98f3cf03142457e0b9b32f2eea471a10466b5ef8abc05ed1d002fbbc81d2b1f3e1000000000000000000000000b98c6b1a805b96707a43e1f1acfa163b68098fa6000000000000000000000000",19"value": "0x0",20"type": "DELEGATECALL"21}22],23"value": "0x0",24"type": "CALL"25},26"txHash": "0x6eac46de7abaf4079fae382032f670261d68637a9c5b5c515b66f1c5c302a475"27},28{29"result": {30"from": "0x80a7db0c2be819afa7c2755f02c8265f157cbdf6",31"gas": "0x1b7740",32"gasUsed": "0x8d8b0",33"to": "0x897a33a0af45b3ba097bd6045187d622252e6acd",34"input": "0x9aec351f000000000000000000000000000000000000000000000000000649d7fe639bac0000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000955534454000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005f45e4855534443000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005f56bae455448000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000035a23e3d514254430000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007119275f57658525000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000009b3ce41534f4c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000026514f570424e42000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011c74fa7e4444f4745000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a19f0041444100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001c3d2a0",35"calls": [36{37"from": "0x897a33a0af45b3ba097bd6045187d622252e6acd",38"gas": "0x194df1",39"gasUsed": "0x7336e",40"to": "0x0c6c73865429e1d87b7b817b95bb1f38f2136529",41"input": "0x9aec351f000000000000000000000000000000000000000000000000000649d7fe639bac0000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000955534454000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005f45e4855534443000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005f56bae455448000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000035a23e3d514254430000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007119275f57658525000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000009b3ce41534f4c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000026514f570424e42000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011c74fa7e4444f4745000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a19f0041444100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001c3d2a0",42"calls": [43{44"from": "0x897a33a0af45b3ba097bd6045187d622252e6acd",45"gas": "0x18bf8c",46"gasUsed": "0x1669",47"to": "0x6342000000000000000000000000000000000002",48"input": "0xb80777ea",49"output": "0x000000000000000000000000000000000000000000000000000649d7fe645963",50"calls": [51{52"from": "0x6342000000000000000000000000000000000002",53"gas": "0x1834e6",54"gasUsed": "0x93f",55"to": "0x6342000000000000000000000000000000000001",56"input": "0x7eba7ba60000000000000000000000000000000000000000000000000000000000000000",57"output": "0x000000000000000000000000000000000000000000000000000649d7fe645963",58"type": "STATICCALL"59}60],61"type": "STATICCALL"62}63],64"value": "0x0",65"type": "DELEGATECALL"66}67],68"value": "0x0",69"type": "CALL"70},71"txHash": "0x06b1377c8867174f7eaa6d3dbc399fb762afe5d8f9539a342713515a9088cb05"72}73]74}
1{2"jsonrpc": "2.0",3"id": 1,4"result": [5{6"result": {7"from": "0xdeaddeaddeaddeaddeaddeaddeaddeaddead0001",8"gas": "0x5f5e100",9"gasUsed": "0x18d5c",10"to": "0x4200000000000000000000000000000000000015",11"input": "0x098999be000005580000000000000000000000b0000000006980afd7000000000173da0700000000000000000000000000000000000000000000000000000000297fe0b400000000000000000000000000000000000000000000000008c6083ea1d86a98f3cf03142457e0b9b32f2eea471a10466b5ef8abc05ed1d002fbbc81d2b1f3e1000000000000000000000000b98c6b1a805b96707a43e1f1acfa163b68098fa6000000000000000000000000",12"calls": [13{14"from": "0x4200000000000000000000000000000000000015",15"gas": "0x5d61e4f",16"gasUsed": "0x4889",17"to": "0xc0d3c0d3c0d3c0d3c0d3c0d3c0d3c0d3c0d30015",18"input": "0x098999be000005580000000000000000000000b0000000006980afd7000000000173da0700000000000000000000000000000000000000000000000000000000297fe0b400000000000000000000000000000000000000000000000008c6083ea1d86a98f3cf03142457e0b9b32f2eea471a10466b5ef8abc05ed1d002fbbc81d2b1f3e1000000000000000000000000b98c6b1a805b96707a43e1f1acfa163b68098fa6000000000000000000000000",19"value": "0x0",20"type": "DELEGATECALL"21}22],23"value": "0x0",24"type": "CALL"25},26"txHash": "0x6eac46de7abaf4079fae382032f670261d68637a9c5b5c515b66f1c5c302a475"27},28{29"result": {30"from": "0x80a7db0c2be819afa7c2755f02c8265f157cbdf6",31"gas": "0x1b7740",32"gasUsed": "0x8d8b0",33"to": "0x897a33a0af45b3ba097bd6045187d622252e6acd",34"input": "0x9aec351f000000000000000000000000000000000000000000000000000649d7fe639bac0000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000955534454000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005f45e4855534443000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005f56bae455448000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000035a23e3d514254430000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007119275f57658525000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000009b3ce41534f4c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000026514f570424e42000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011c74fa7e4444f4745000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a19f0041444100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001c3d2a0",35"calls": [36{37"from": "0x897a33a0af45b3ba097bd6045187d622252e6acd",38"gas": "0x194df1",39"gasUsed": "0x7336e",40"to": "0x0c6c73865429e1d87b7b817b95bb1f38f2136529",41"input": "0x9aec351f000000000000000000000000000000000000000000000000000649d7fe639bac0000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000955534454000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005f45e4855534443000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005f56bae455448000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000035a23e3d514254430000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007119275f57658525000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000009b3ce41534f4c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000026514f570424e42000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011c74fa7e4444f4745000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a19f0041444100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001c3d2a0",42"calls": [43{44"from": "0x897a33a0af45b3ba097bd6045187d622252e6acd",45"gas": "0x18bf8c",46"gasUsed": "0x1669",47"to": "0x6342000000000000000000000000000000000002",48"input": "0xb80777ea",49"output": "0x000000000000000000000000000000000000000000000000000649d7fe645963",50"calls": [51{52"from": "0x6342000000000000000000000000000000000002",53"gas": "0x1834e6",54"gasUsed": "0x93f",55"to": "0x6342000000000000000000000000000000000001",56"input": "0x7eba7ba60000000000000000000000000000000000000000000000000000000000000000",57"output": "0x000000000000000000000000000000000000000000000000000649d7fe645963",58"type": "STATICCALL"59}60],61"type": "STATICCALL"62}63],64"value": "0x0",65"type": "DELEGATECALL"66}67],68"value": "0x0",69"type": "CALL"70},71"txHash": "0x06b1377c8867174f7eaa6d3dbc399fb762afe5d8f9539a342713515a9088cb05"72}73]74}