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
- arrayarray
The array of transaction trace results
- resultobject
The trace result object containing the execution details of the transaction
- callsarray
The list of internal call frames triggered during execution (may be nested)
- typestring
The type of the call such as CALL, STATICCALL, or DELEGATECALL
- fromstring
The address the call was made from
- gasstring
The amount of gas provided for the call encoded as a hexadecimal string
- gasUsedstring
The amount of gas consumed during the call encoded as a hexadecimal string
- inputstring
Hex-encoded calldata sent with the call
- outputstring
Hex-encoded data returned from the call (empty 0x if none)
- tostring
The address the call was made to
- valuestring
The amount of value transferred in wei encoded as a hexadecimal string
- callsarray
(Optional) Nested internal sub-calls triggered by this call frame
- errorstring
(Optional) Error message if the call failed (e.g., execution reverted)
- fromstring
The address that initiated the top-level call
- gasstring
Total gas provided for the top-level call encoded as a hexadecimal string
- gasUsedstring
Total gas consumed by the top-level call encoded as a hexadecimal string
- inputstring
Hex-encoded calldata for the top-level call
- outputstring
Hex-encoded return data from the top-level call (0x if none)
- tostring
The address targeted by the top-level call
- typestring
The type of the top-level call such as CALL or STATICCALL
- valuestring
The value (wei) sent with the top-level call encoded as a hexadecimal string
1{2"jsonrpc": "2.0",3"id": 1,4"result": [5{6"txHash": "0x5f8b82687c566ce0a91530430d7d6d4abf9708835e6dba3daac9d3c3ae6e543f",7"result": {8"from": "0xdeaddeaddeaddeaddeaddeaddeaddeaddead0001",9"gas": "0xf4240",10"gasUsed": "0xcc06",11"to": "0x4200000000000000000000000000000000000015",12"input": "0x440a5e20017e49ee00000000000000000000000000000000696a99bb0000000002701e6c00000000000000000000000000000000000000000000000000000000002924710000000000000000000000000000000000000000000000000000000000000001f8ee634e096101434fb523e0a307e26ef622d01d3044beda5f85e24eaad9be7f0000000000000000000000001af3f4e08a16b93ccbdf6887549697f17f9cf78a",13"calls": [14{15"from": "0x4200000000000000000000000000000000000015",16"gas": "0xe9b99",17"gasUsed": "0x6097",18"to": "0xc0d3c0d3c0d3c0d3c0d3c0d3c0d3c0d3c0d30015",19"input": "0x440a5e20017e49ee00000000000000000000000000000000696a99bb0000000002701e6c00000000000000000000000000000000000000000000000000000000002924710000000000000000000000000000000000000000000000000000000000000001f8ee634e096101434fb523e0a307e26ef622d01d3044beda5f85e24eaad9be7f0000000000000000000000001af3f4e08a16b93ccbdf6887549697f17f9cf78a",20"value": "0x0",21"type": "DELEGATECALL"22}23],24"value": "0x0",25"type": "CALL"26}27}28]29}
1{2"jsonrpc": "2.0",3"id": 1,4"result": [5{6"txHash": "0x5f8b82687c566ce0a91530430d7d6d4abf9708835e6dba3daac9d3c3ae6e543f",7"result": {8"from": "0xdeaddeaddeaddeaddeaddeaddeaddeaddead0001",9"gas": "0xf4240",10"gasUsed": "0xcc06",11"to": "0x4200000000000000000000000000000000000015",12"input": "0x440a5e20017e49ee00000000000000000000000000000000696a99bb0000000002701e6c00000000000000000000000000000000000000000000000000000000002924710000000000000000000000000000000000000000000000000000000000000001f8ee634e096101434fb523e0a307e26ef622d01d3044beda5f85e24eaad9be7f0000000000000000000000001af3f4e08a16b93ccbdf6887549697f17f9cf78a",13"calls": [14{15"from": "0x4200000000000000000000000000000000000015",16"gas": "0xe9b99",17"gasUsed": "0x6097",18"to": "0xc0d3c0d3c0d3c0d3c0d3c0d3c0d3c0d3c0d30015",19"input": "0x440a5e20017e49ee00000000000000000000000000000000696a99bb0000000002701e6c00000000000000000000000000000000000000000000000000000000002924710000000000000000000000000000000000000000000000000000000000000001f8ee634e096101434fb523e0a307e26ef622d01d3044beda5f85e24eaad9be7f0000000000000000000000001af3f4e08a16b93ccbdf6887549697f17f9cf78a",20"value": "0x0",21"type": "DELEGATECALL"22}23],24"value": "0x0",25"type": "CALL"26}27}28]29}