Parameters
- blockNumberstringREQUIRED
The block number as a string in hexadecimal format or tags. The supported tag values include earliest for the earliest/genesis block, latest for the latest mined block, pending for the pending state/transactions, safe for the most recent secure block, and finalized for the most recent secure block accepted by more than 2/3 of validators. safe and finalized are only supported on Ethereum, Gnosis, Arbitrum, Arbitrum Nova, and Avalanche C-chain
- 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
- 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": "0xd6ee9e99ee85bf0d99bf1bf0e22c4889d373324afd237027bdc60324054957f1",7"result": {8"beforeEVMTransfers": [],9"afterEVMTransfers": [],10"from": "0x00000000000000000000000000000000000a4b05",11"gas": "0x0",12"gasUsed": "0x0",13"to": "0x00000000000000000000000000000000000a4b05",14"input": "0x6bf6a42d0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000183f0fd000000000000000000000000000000000000000000000000000000000006d0000000000000000000000000000000000000000000000000000000000000000000",15"calls": [16{17"from": "0xfffffffffffffffffffffffffffffffffffffffe",18"gas": "0x1c9c380",19"gasUsed": "0x212c",20"to": "0x0000f90827f1c53a10cb7a02335b175320002935",21"input": "0xc51947542867be1f92b09f5a8a47e035e77f4b37161f474a73e365e5dc16ea30",22"calls": [23{24"from": "0x0000f90827f1c53a10cb7a02335b175320002935",25"gas": "0x1c29238",26"gasUsed": "0x323",27"to": "0x0000000000000000000000000000000000000064",28"input": "0xa3b1b31d",29"output": "0x000000000000000000000000000000000000000000000000000000000006d000",30"type": "STATICCALL"31}32],33"value": "0x0",34"type": "CALL"35}36],37"value": "0x0",38"type": "CALL"39}40},41{42"txHash": "0x33dec5073161051abab063f8dc8d93674d32c77a362054eb2b29acb880f23314",43"result": {44"beforeEVMTransfers": [45{46"purpose": "feePayment",47"from": "0xF4e84FEE3AA08AEc9c2580260311D28de371d937",48"to": null,49"value": "0x5751fa1a600"50}51],52"afterEVMTransfers": [53{54"purpose": "gasRefund",55"from": null,56"to": "0xF4e84FEE3AA08AEc9c2580260311D28de371d937",57"value": "0x4d118ba98f0"58},59{60"purpose": "feeCollection",61"from": null,62"to": "0x5a2B80a9b7effc06129bD5462D77BC20A8A59BE7",63"value": "0x99f2975400"64},65{66"purpose": "feeCollection",67"from": null,68"to": "0xbC5C3a7Adecf54D34169fd90dbD1B7d3142DF067",69"value": "0x3f0e940"70},71{72"purpose": "feeCollection",73"from": null,74"to": "0xa4B00000000000000000000000000000000000F6",75"value": "0xa105ecfd0"76}77],78"from": "0xf4e84fee3aa08aec9c2580260311d28de371d937",79"gas": "0x493e0",80"gasUsed": "0x8995",81"to": "0x4e5b9fc9df660c355743f8b6dd79389db8dcd836",82"input": "0xb6621842000000000000000000000000000000000000000000000000000000039cf985fd0000000000000000000000000000000000000000000000000000000000000000",83"value": "0x0",84"type": "CALL"85}86}87]88}
1{2"jsonrpc": "2.0",3"id": 1,4"result": [5{6"txHash": "0xd6ee9e99ee85bf0d99bf1bf0e22c4889d373324afd237027bdc60324054957f1",7"result": {8"beforeEVMTransfers": [],9"afterEVMTransfers": [],10"from": "0x00000000000000000000000000000000000a4b05",11"gas": "0x0",12"gasUsed": "0x0",13"to": "0x00000000000000000000000000000000000a4b05",14"input": "0x6bf6a42d0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000183f0fd000000000000000000000000000000000000000000000000000000000006d0000000000000000000000000000000000000000000000000000000000000000000",15"calls": [16{17"from": "0xfffffffffffffffffffffffffffffffffffffffe",18"gas": "0x1c9c380",19"gasUsed": "0x212c",20"to": "0x0000f90827f1c53a10cb7a02335b175320002935",21"input": "0xc51947542867be1f92b09f5a8a47e035e77f4b37161f474a73e365e5dc16ea30",22"calls": [23{24"from": "0x0000f90827f1c53a10cb7a02335b175320002935",25"gas": "0x1c29238",26"gasUsed": "0x323",27"to": "0x0000000000000000000000000000000000000064",28"input": "0xa3b1b31d",29"output": "0x000000000000000000000000000000000000000000000000000000000006d000",30"type": "STATICCALL"31}32],33"value": "0x0",34"type": "CALL"35}36],37"value": "0x0",38"type": "CALL"39}40},41{42"txHash": "0x33dec5073161051abab063f8dc8d93674d32c77a362054eb2b29acb880f23314",43"result": {44"beforeEVMTransfers": [45{46"purpose": "feePayment",47"from": "0xF4e84FEE3AA08AEc9c2580260311D28de371d937",48"to": null,49"value": "0x5751fa1a600"50}51],52"afterEVMTransfers": [53{54"purpose": "gasRefund",55"from": null,56"to": "0xF4e84FEE3AA08AEc9c2580260311D28de371d937",57"value": "0x4d118ba98f0"58},59{60"purpose": "feeCollection",61"from": null,62"to": "0x5a2B80a9b7effc06129bD5462D77BC20A8A59BE7",63"value": "0x99f2975400"64},65{66"purpose": "feeCollection",67"from": null,68"to": "0xbC5C3a7Adecf54D34169fd90dbD1B7d3142DF067",69"value": "0x3f0e940"70},71{72"purpose": "feeCollection",73"from": null,74"to": "0xa4B00000000000000000000000000000000000F6",75"value": "0xa105ecfd0"76}77],78"from": "0xf4e84fee3aa08aec9c2580260311d28de371d937",79"gas": "0x493e0",80"gasUsed": "0x8995",81"to": "0x4e5b9fc9df660c355743f8b6dd79389db8dcd836",82"input": "0xb6621842000000000000000000000000000000000000000000000000000000039cf985fd0000000000000000000000000000000000000000000000000000000000000000",83"value": "0x0",84"type": "CALL"85}86}87]88}