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
- 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 gas provided for the transaction execution
- gasUsedstring
The gas used by the transaction
- tostring
The address the transaction is directed to
- inputstring
The input data sent with the transaction
- outputstring
(Optional) The returned data from the transaction execution
- errorstring
(Optional) The error message if the transaction failed
- revertReasonstring
(Optional) The decoded revert reason if available
- callsarray
(Optional) List of internal calls triggered 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, STATICCALL)
- callsarray
(Optional) Recursive internal calls
- valuestring
The value (in Wei) sent with this transaction
- typestring
The type of the outermost call
1{2"jsonrpc": "2.0",3"id": 1,4"result": [5{6"txHash": "0xa747b7488abb2f8401bdbb0cd868494105e990726a93e253cddd17968ed91db1",7"result": {8"calls": [9{10"from": "0xbee97f13cc7a681436ee8de71926b8fad6f10b0f",11"gas": "0x1093e",12"gasUsed": "0x317d",13"input": "0xa9059cbb0000000000000000000000004ad948127fcc4605886696d880455f218c4b0425000000000000000000000000000000000000000000000008e354744520d07a2c",14"output": "0x0000000000000000000000000000000000000000000000000000000000000001",15"to": "0xa04bc7140c26fc9bb1f36b1a604c7a5a88fb0e70",16"type": "CALL",17"value": "0x0"18}19],20"from": "0x4ad948127fcc4605886696d880455f218c4b0425",21"gas": "0x2489d",22"gasUsed": "0x1413f",23"input": "0x3d18b912",24"to": "0xbee97f13cc7a681436ee8de71926b8fad6f10b0f",25"type": "CALL",26"value": "0x0"27}28},29{30"txHash": "0x06a23225fc8de20ddc37bccb2262e1519f3bdcb24eaed10b251d16a85e684c28",31"result": {32"from": "0x43b9f230c6328d42ae9674d15093b2093de24838",33"gas": "0x1339e",34"gasUsed": "0xd755",35"input": "0x4a502f3900000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000001a00000000000000000000000000000000000000000000000000000000000000220000000000000000000000000000000000000000000000000000000006883737500000000000000000000000000000000000000000000000000000000000000030000000000000000000000000555e30da8f98308edb960aa94c0db47230d2b9c000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad3800000000000000000000000050c42deacd8fc9773493ed674b675be577f2634b000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001fd431800000000000000000000000000000000000000000000000000000056a5d7f338000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000b1a2bc2ec500000000000000000000000000000000000000000000000000000003e81a816a7a9900000000000000000000000000000000000000000000000000027f16d66a77fe00000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000de0b6b3a76400000000000000000000000000000000000000000000000000000000000adee1d61c000000000000000000000000000000000000000000000000000000001ad27480",36"to": "0x2a375567f5e13f6bd74fda7627df3b1af6bfa5a6",37"type": "CALL",38"value": "0x0"39}40}41]42}
1{2"jsonrpc": "2.0",3"id": 1,4"result": [5{6"txHash": "0xa747b7488abb2f8401bdbb0cd868494105e990726a93e253cddd17968ed91db1",7"result": {8"calls": [9{10"from": "0xbee97f13cc7a681436ee8de71926b8fad6f10b0f",11"gas": "0x1093e",12"gasUsed": "0x317d",13"input": "0xa9059cbb0000000000000000000000004ad948127fcc4605886696d880455f218c4b0425000000000000000000000000000000000000000000000008e354744520d07a2c",14"output": "0x0000000000000000000000000000000000000000000000000000000000000001",15"to": "0xa04bc7140c26fc9bb1f36b1a604c7a5a88fb0e70",16"type": "CALL",17"value": "0x0"18}19],20"from": "0x4ad948127fcc4605886696d880455f218c4b0425",21"gas": "0x2489d",22"gasUsed": "0x1413f",23"input": "0x3d18b912",24"to": "0xbee97f13cc7a681436ee8de71926b8fad6f10b0f",25"type": "CALL",26"value": "0x0"27}28},29{30"txHash": "0x06a23225fc8de20ddc37bccb2262e1519f3bdcb24eaed10b251d16a85e684c28",31"result": {32"from": "0x43b9f230c6328d42ae9674d15093b2093de24838",33"gas": "0x1339e",34"gasUsed": "0xd755",35"input": "0x4a502f3900000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000001a00000000000000000000000000000000000000000000000000000000000000220000000000000000000000000000000000000000000000000000000006883737500000000000000000000000000000000000000000000000000000000000000030000000000000000000000000555e30da8f98308edb960aa94c0db47230d2b9c000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad3800000000000000000000000050c42deacd8fc9773493ed674b675be577f2634b000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001fd431800000000000000000000000000000000000000000000000000000056a5d7f338000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000b1a2bc2ec500000000000000000000000000000000000000000000000000000003e81a816a7a9900000000000000000000000000000000000000000000000000027f16d66a77fe00000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000de0b6b3a76400000000000000000000000000000000000000000000000000000000000adee1d61c000000000000000000000000000000000000000000000000000000001ad27480",36"to": "0x2a375567f5e13f6bd74fda7627df3b1af6bfa5a6",37"type": "CALL",38"value": "0x0"39}40}41]42}