Parameters
- blockstringREQUIRED
The RLP-encoded block to trace
- 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 occurred 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
- resultarray
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
- 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{6"txHash": "0xd9e9fb6a2e4ecd022f80a4957ac98f590152326f0e147850d000938f431c190c",7"result": {8"beforeEVMTransfers": [],9"afterEVMTransfers": [],10"from": "0x00000000000000000000000000000000000a4b05",11"gas": "0x0",12"gasUsed": "0x0",13"to": "0x00000000000000000000000000000000000a4b05",14"input": "0x6bf6a42d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000030386330000000000000000000000000000000000000000000000000000000000181f920000000000000000000000000000000000000000000000000000000000000000",15"calls": [16{17"from": "0xfffffffffffffffffffffffffffffffffffffffe",18"gas": "0x1c9c380",19"gasUsed": "0x212c",20"to": "0x0000f90827f1c53a10cb7a02335b175320002935",21"input": "0x03368aed4e26cd9ef8289034029fe53477c834d27ad229c36598a7338edafbd2",22"calls": [23{24"from": "0x0000f90827f1c53a10cb7a02335b175320002935",25"gas": "0x1c29238",26"gasUsed": "0x323",27"to": "0x0000000000000000000000000000000000000064",28"input": "0xa3b1b31d",29"output": "0x0000000000000000000000000000000000000000000000000000000000181f92",30"type": "STATICCALL"31}32],33"value": "0x0",34"type": "CALL"35}36],37"value": "0x0",38"type": "CALL"39}40},41{42"txHash": "0x5b40f41726f5fcfc5b89d369fb57696d31380ebe9b41cd8976aa7bdda65c31a4",43"result": {44"beforeEVMTransfers": [45{46"purpose": "feePayment",47"from": "0x54Bf055108F9Af5dA4f4DFe2EdA125842Acae622",48"to": null,49"value": "0x106d33690400"50}51],52"afterEVMTransfers": [53{54"purpose": "gasRefund",55"from": null,56"to": "0x54Bf055108F9Af5dA4f4DFe2EdA125842Acae622",57"value": "0xbf3ab487150"58},59{60"purpose": "tip",61"from": null,62"to": "0x6CBb552855CE5Eb70af49B76a8048be8E3799A05",63"value": "0x1806e8101b0"64},65{66"purpose": "feeCollection",67"from": null,68"to": "0x6CBb552855CE5Eb70af49B76a8048be8E3799A05",69"value": "0x2f9199f9100"70},71{72"purpose": "feeCollection",73"from": null,74"to": "0xa4B00000000000000000000000000000000000F6",75"value": "0x0"76}77],78"from": "0x54bf055108f9af5da4f4dfe2eda125842acae622",79"gas": "0x1d4c0",80"gasUsed": "0x7fb1",81"to": "0xe844701934d9c6085b292e428f41b911cc0b3872",82"input": "0x005e7c42e4464686e518cf3b3b37478f6d60600000000000000001a1b22ab60f00377b2bde7b7b0000000000000000000000000000000000000001a1b22ab60f0102d9167ca3a30000000000000000000000000000000000000001a1b22ab60f02",83"value": "0x0",84"type": "CALL"85}86}87]88}
1{2"jsonrpc": "2.0",3"id": 1,4"result": [5{6"txHash": "0xd9e9fb6a2e4ecd022f80a4957ac98f590152326f0e147850d000938f431c190c",7"result": {8"beforeEVMTransfers": [],9"afterEVMTransfers": [],10"from": "0x00000000000000000000000000000000000a4b05",11"gas": "0x0",12"gasUsed": "0x0",13"to": "0x00000000000000000000000000000000000a4b05",14"input": "0x6bf6a42d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000030386330000000000000000000000000000000000000000000000000000000000181f920000000000000000000000000000000000000000000000000000000000000000",15"calls": [16{17"from": "0xfffffffffffffffffffffffffffffffffffffffe",18"gas": "0x1c9c380",19"gasUsed": "0x212c",20"to": "0x0000f90827f1c53a10cb7a02335b175320002935",21"input": "0x03368aed4e26cd9ef8289034029fe53477c834d27ad229c36598a7338edafbd2",22"calls": [23{24"from": "0x0000f90827f1c53a10cb7a02335b175320002935",25"gas": "0x1c29238",26"gasUsed": "0x323",27"to": "0x0000000000000000000000000000000000000064",28"input": "0xa3b1b31d",29"output": "0x0000000000000000000000000000000000000000000000000000000000181f92",30"type": "STATICCALL"31}32],33"value": "0x0",34"type": "CALL"35}36],37"value": "0x0",38"type": "CALL"39}40},41{42"txHash": "0x5b40f41726f5fcfc5b89d369fb57696d31380ebe9b41cd8976aa7bdda65c31a4",43"result": {44"beforeEVMTransfers": [45{46"purpose": "feePayment",47"from": "0x54Bf055108F9Af5dA4f4DFe2EdA125842Acae622",48"to": null,49"value": "0x106d33690400"50}51],52"afterEVMTransfers": [53{54"purpose": "gasRefund",55"from": null,56"to": "0x54Bf055108F9Af5dA4f4DFe2EdA125842Acae622",57"value": "0xbf3ab487150"58},59{60"purpose": "tip",61"from": null,62"to": "0x6CBb552855CE5Eb70af49B76a8048be8E3799A05",63"value": "0x1806e8101b0"64},65{66"purpose": "feeCollection",67"from": null,68"to": "0x6CBb552855CE5Eb70af49B76a8048be8E3799A05",69"value": "0x2f9199f9100"70},71{72"purpose": "feeCollection",73"from": null,74"to": "0xa4B00000000000000000000000000000000000F6",75"value": "0x0"76}77],78"from": "0x54bf055108f9af5da4f4dfe2eda125842acae622",79"gas": "0x1d4c0",80"gasUsed": "0x7fb1",81"to": "0xe844701934d9c6085b292e428f41b911cc0b3872",82"input": "0x005e7c42e4464686e518cf3b3b37478f6d60600000000000000001a1b22ab60f00377b2bde7b7b0000000000000000000000000000000000000001a1b22ab60f0102d9167ca3a30000000000000000000000000000000000000001a1b22ab60f02",83"value": "0x0",84"type": "CALL"85}86}87]88}