Parameters
The hash of the block to be traced
The tracer object with the following fields:
The type of tracer. It could be callTracer or prestateTracer
The calltracer keeps track of all call frames, including depth 0 calls, that are made during a transaction
The prestateTracer replays the transaction and tracks every part of state that occured during the transaction
The object to specify the configurations of the tracer
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
When set to true, enables a differential tracing mode, highlighting variations in execution between multiple calls or states
Returns
An array of trace envelopes, one per transaction in the block
The hash of the transaction being traced
An object containing detailed information about the traced transaction
The address the transaction is sent from
The integer of the gas provided for the transaction execution
The integer of the gas used
The address the transaction is directed to
The data given at the time of input
(Optional) The data which is returned as an output; not always present (e.g. for some STATICCALLs)
The integer of the value sent with this transaction
The type of the call
(Optional) A list of sub-calls; only present when the call frame contains internal calls
1{2"jsonrpc": "2.0",3"id": 1,4"result": [5{6"txHash": "0x4847b1ebcbd04297a1d01c9724da0101d5fefd5f9d9f22068056231f0707f355",7"result": {8"calls": [9{10"from": "0x22cc57c9ec341152834f216289a1824d61b47855",11"gas": "0x339d3",12"gasUsed": "0x439",13"input": "0x18160ddd",14"output": "0x000000000000000000000000000000000000000000000a11d10bf96c65758828",15"to": "0xa41497122bb9b9eb2eb1c5c872551e145bc3166b",16"type": "STATICCALL"17},18{19"from": "0x22cc57c9ec341152834f216289a1824d61b47855",20"gas": "0x31331",21"gasUsed": "0x3b3b",22"input": "0x40c10f190000000000000000000000003378d043ab527eee4556c950a9c4bd87f06cd80400000000000000000000000000000000000000000000000000204c22370c8ba2",23"to": "0xa41497122bb9b9eb2eb1c5c872551e145bc3166b",24"type": "CALL",25"value": "0x0"26},27{28"from": "0x22cc57c9ec341152834f216289a1824d61b47855",29"gas": "0x2cf93",30"gasUsed": "0x2ad3",31"input": "0x40c10f1900000000000000000000000022cc57c9ec341152834f216289a1824d61b478550000000000000000000000000000000000000000000000000142f956267d745d",32"to": "0xa41497122bb9b9eb2eb1c5c872551e145bc3166b",33"type": "CALL",34"value": "0x0"35},36{37"from": "0x22cc57c9ec341152834f216289a1824d61b47855",38"gas": "0x260d6",39"gasUsed": "0x5a30",40"input": "0x23b872dd000000000000000000000000b0fbdb31e382b7186d8d08c4a09c935a33a0996e00000000000000000000000022cc57c9ec341152834f216289a1824d61b478550000000000000000000000000000000000000000000000004f1a77ccd3ba0000",41"output": "0x0000000000000000000000000000000000000000000000000000000000000001",42"to": "0xf952fc3ca7325cc27d15885d37117676d25bfda6",43"type": "CALL",44"value": "0x0"45},46{47"from": "0x22cc57c9ec341152834f216289a1824d61b47855",48"gas": "0x1f6da",49"gasUsed": "0x28cf",50"input": "0xa9059cbb00000000000000000000000097c9f6a8482a92d6facdf312e1919872a06d1b0d0000000000000000000000000000000000000000000000000195026560650000",51"output": "0x0000000000000000000000000000000000000000000000000000000000000001",52"to": "0xf952fc3ca7325cc27d15885d37117676d25bfda6",53"type": "CALL",54"value": "0x0"55}56],57"from": "0xb0fbdb31e382b7186d8d08c4a09c935a33a0996e",58"gas": "0x3d090",59"gasUsed": "0x2b53e",60"input": "0xe2bbb15800000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000004f1a77ccd3ba0000",61"to": "0x22cc57c9ec341152834f216289a1824d61b47855",62"type": "CALL",63"value": "0x0"64}65}66]67}
1{2"jsonrpc": "2.0",3"id": 1,4"result": [5{6"txHash": "0x4847b1ebcbd04297a1d01c9724da0101d5fefd5f9d9f22068056231f0707f355",7"result": {8"calls": [9{10"from": "0x22cc57c9ec341152834f216289a1824d61b47855",11"gas": "0x339d3",12"gasUsed": "0x439",13"input": "0x18160ddd",14"output": "0x000000000000000000000000000000000000000000000a11d10bf96c65758828",15"to": "0xa41497122bb9b9eb2eb1c5c872551e145bc3166b",16"type": "STATICCALL"17},18{19"from": "0x22cc57c9ec341152834f216289a1824d61b47855",20"gas": "0x31331",21"gasUsed": "0x3b3b",22"input": "0x40c10f190000000000000000000000003378d043ab527eee4556c950a9c4bd87f06cd80400000000000000000000000000000000000000000000000000204c22370c8ba2",23"to": "0xa41497122bb9b9eb2eb1c5c872551e145bc3166b",24"type": "CALL",25"value": "0x0"26},27{28"from": "0x22cc57c9ec341152834f216289a1824d61b47855",29"gas": "0x2cf93",30"gasUsed": "0x2ad3",31"input": "0x40c10f1900000000000000000000000022cc57c9ec341152834f216289a1824d61b478550000000000000000000000000000000000000000000000000142f956267d745d",32"to": "0xa41497122bb9b9eb2eb1c5c872551e145bc3166b",33"type": "CALL",34"value": "0x0"35},36{37"from": "0x22cc57c9ec341152834f216289a1824d61b47855",38"gas": "0x260d6",39"gasUsed": "0x5a30",40"input": "0x23b872dd000000000000000000000000b0fbdb31e382b7186d8d08c4a09c935a33a0996e00000000000000000000000022cc57c9ec341152834f216289a1824d61b478550000000000000000000000000000000000000000000000004f1a77ccd3ba0000",41"output": "0x0000000000000000000000000000000000000000000000000000000000000001",42"to": "0xf952fc3ca7325cc27d15885d37117676d25bfda6",43"type": "CALL",44"value": "0x0"45},46{47"from": "0x22cc57c9ec341152834f216289a1824d61b47855",48"gas": "0x1f6da",49"gasUsed": "0x28cf",50"input": "0xa9059cbb00000000000000000000000097c9f6a8482a92d6facdf312e1919872a06d1b0d0000000000000000000000000000000000000000000000000195026560650000",51"output": "0x0000000000000000000000000000000000000000000000000000000000000001",52"to": "0xf952fc3ca7325cc27d15885d37117676d25bfda6",53"type": "CALL",54"value": "0x0"55}56],57"from": "0xb0fbdb31e382b7186d8d08c4a09c935a33a0996e",58"gas": "0x3d090",59"gasUsed": "0x2b53e",60"input": "0xe2bbb15800000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000004f1a77ccd3ba0000",61"to": "0x22cc57c9ec341152834f216289a1824d61b47855",62"type": "CALL",63"value": "0x0"64}65}66]67}