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
- result
The result object which contains the following fields:
- 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
- calls
An array containing information about internal calls made during the transaction
- from
The address making the call
- gas
The gas limit specified for the call
- gasUsed
The amount of gas used during the call
- to
The address being called
- input
The input data for the call
- output
(Optional) The output data of the call
- value
The value (in Wei) sent with the call
- type
The type of call (e.g., CALL or STATICCALL)
- value
The integer of the value sent with this transaction
- type
The type of the call
1{2"jsonrpc": "2.0",3"id": 1,4"result": [5{6"txHash": "0x2679ae0fe391d35acef55303cfee57191ec52c159b1ed41510044b0623058465",7"result": {8"from": "0xdeaddeaddeaddeaddeaddeaddeaddeaddead0001",9"gas": "0xf4240",10"gasUsed": "0xb41e",11"to": "0x4200000000000000000000000000000000000015",12"input": "0x3db6be2b000c3c9d0000000000000000000000010000000069a3080000000000009e02c0000000000000000000000000000000000000000000000000000000000000002200000000000000000000000000000000000000000000000000000000000000029cbe0f52b36011c89654466b3acbe8444b09d6a64df60df35881cd50b1a383f000000000000000000000000021e57c21530bc33f12ba96c9ddc135488365002f0000000000000000000000000190",13"calls": [14{15"from": "0x4200000000000000000000000000000000000015",16"gas": "0xe9b85",17"gasUsed": "0x489b",18"to": "0x3ba4007f5c922fbb33c454b41ea7a1f11e83df2c",19"input": "0x3db6be2b000c3c9d0000000000000000000000010000000069a3080000000000009e02c0000000000000000000000000000000000000000000000000000000000000002200000000000000000000000000000000000000000000000000000000000000029cbe0f52b36011c89654466b3acbe8444b09d6a64df60df35881cd50b1a383f000000000000000000000000021e57c21530bc33f12ba96c9ddc135488365002f0000000000000000000000000190",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": "0x2679ae0fe391d35acef55303cfee57191ec52c159b1ed41510044b0623058465",7"result": {8"from": "0xdeaddeaddeaddeaddeaddeaddeaddeaddead0001",9"gas": "0xf4240",10"gasUsed": "0xb41e",11"to": "0x4200000000000000000000000000000000000015",12"input": "0x3db6be2b000c3c9d0000000000000000000000010000000069a3080000000000009e02c0000000000000000000000000000000000000000000000000000000000000002200000000000000000000000000000000000000000000000000000000000000029cbe0f52b36011c89654466b3acbe8444b09d6a64df60df35881cd50b1a383f000000000000000000000000021e57c21530bc33f12ba96c9ddc135488365002f0000000000000000000000000190",13"calls": [14{15"from": "0x4200000000000000000000000000000000000015",16"gas": "0xe9b85",17"gasUsed": "0x489b",18"to": "0x3ba4007f5c922fbb33c454b41ea7a1f11e83df2c",19"input": "0x3db6be2b000c3c9d0000000000000000000000010000000069a3080000000000009e02c0000000000000000000000000000000000000000000000000000000000000002200000000000000000000000000000000000000000000000000000000000000029cbe0f52b36011c89654466b3acbe8444b09d6a64df60df35881cd50b1a383f000000000000000000000000021e57c21530bc33f12ba96c9ddc135488365002f0000000000000000000000000190",20"value": "0x0",21"type": "DELEGATECALL"22}23],24"value": "0x0",25"type": "CALL"26}27}28]29}