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
- diffModeboolean
When set to true, enables a differential tracing mode, highlighting variations in execution between multiple calls or states
Returns
- result
An array of trace envelopes, one per transaction in the block
- txHash
The hash of the transaction being traced
- result
An object containing detailed information about the traced transaction
- from
The address the transaction is sent from
- gas
The integer of the gas provided for the transaction execution
- gasUsed
The integer of the gas used
- to
The address the transaction is directed to
- input
The data given at the time of input
- output
(Optional) The data which is returned as an output; not always present (e.g. for some STATICCALLs)
- value
The integer of the value sent with this transaction
- type
The type of the call
- calls
(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": "0x853008502b0e5d4b96428b02ee595b0f7c734df48d1d266a976c5adad3a80e90",7"result": {8"from": "0x4982085c9e2f89f2ecb8131eca71afad896e89cb",9"gas": "0x14155",10"gasUsed": "0xd62d",11"input": "0xa9059cbb000000000000000000000000b9b9161c6440353d30e06f6a3f93cd43bd1e39070000000000000000000000000000000000000000000004eeb297cc32be320000",12"output": "0x0000000000000000000000000000000000000000000000000000000000000001",13"to": "0x524df384bffb18c0c8f3f43d012011f8f9795579",14"type": "CALL",15"value": "0x0"16}17}18]19}
1{2"jsonrpc": "2.0",3"id": 1,4"result": [5{6"txHash": "0x853008502b0e5d4b96428b02ee595b0f7c734df48d1d266a976c5adad3a80e90",7"result": {8"from": "0x4982085c9e2f89f2ecb8131eca71afad896e89cb",9"gas": "0x14155",10"gasUsed": "0xd62d",11"input": "0xa9059cbb000000000000000000000000b9b9161c6440353d30e06f6a3f93cd43bd1e39070000000000000000000000000000000000000000000004eeb297cc32be320000",12"output": "0x0000000000000000000000000000000000000000000000000000000000000001",13"to": "0x524df384bffb18c0c8f3f43d012011f8f9795579",14"type": "CALL",15"value": "0x0"16}17}18]19}