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
- objectobject
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 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"result": {7"type": "CALL",8"from": "0xdeaddeaddeaddeaddeaddeaddeaddeaddead0001",9"to": "0x4200000000000000000000000000000000000015",10"value": "0x0",11"gas": "0xf4240",12"gasUsed": "0xb4de",13"input": "0x3db6be2b00000558000c5fc500000000000000070000000069ce7ddf00000000017a4dde000000000000000000000000000000000000000000000000000000000aa7443100000000000000000000000000000000000000000000000000000000009f1d437c2b682b637fb2a5d743b55087b9d028c8cbda2160e1976b0cb1ebf622309e3e0000000000000000000000001ffda89c755f6d4af069897d77ccabb580fd412a000000000000013aa2d138370190",14"calls": [15{16"type": "DELEGATECALL",17"from": "0x4200000000000000000000000000000000000015",18"to": "0x3ba4007f5c922fbb33c454b41ea7a1f11e83df2c",19"gas": "0xe9ac8",20"gasUsed": "0x489b",21"input": "0x3db6be2b00000558000c5fc500000000000000070000000069ce7ddf00000000017a4dde000000000000000000000000000000000000000000000000000000000aa7443100000000000000000000000000000000000000000000000000000000009f1d437c2b682b637fb2a5d743b55087b9d028c8cbda2160e1976b0cb1ebf622309e3e0000000000000000000000001ffda89c755f6d4af069897d77ccabb580fd412a000000000000013aa2d138370190"22}23]24},25"txHash": "0x5f6d36a930ca9df53c8f449149ae11599c93bc3a9fa2a63fb82535701d8a285f"26},27{28"result": {29"type": "CALL",30"from": "0x000000014f2cd9933bf278a16bc85f745f08dd00",31"to": "0x7d9f195daf64863410af8a52b94c7bc573a6af9a",32"value": "0xac6c95a8ac627",33"gas": "0x5208",34"gasUsed": "0x5208",35"input": "0x"36},37"txHash": "0xf4d38941a4a518809b3f3f680e16af0d379c892d59b6fb27e800fc9b7cf017c3"38}39]40}
1{2"jsonrpc": "2.0",3"id": 1,4"result": [5{6"result": {7"type": "CALL",8"from": "0xdeaddeaddeaddeaddeaddeaddeaddeaddead0001",9"to": "0x4200000000000000000000000000000000000015",10"value": "0x0",11"gas": "0xf4240",12"gasUsed": "0xb4de",13"input": "0x3db6be2b00000558000c5fc500000000000000070000000069ce7ddf00000000017a4dde000000000000000000000000000000000000000000000000000000000aa7443100000000000000000000000000000000000000000000000000000000009f1d437c2b682b637fb2a5d743b55087b9d028c8cbda2160e1976b0cb1ebf622309e3e0000000000000000000000001ffda89c755f6d4af069897d77ccabb580fd412a000000000000013aa2d138370190",14"calls": [15{16"type": "DELEGATECALL",17"from": "0x4200000000000000000000000000000000000015",18"to": "0x3ba4007f5c922fbb33c454b41ea7a1f11e83df2c",19"gas": "0xe9ac8",20"gasUsed": "0x489b",21"input": "0x3db6be2b00000558000c5fc500000000000000070000000069ce7ddf00000000017a4dde000000000000000000000000000000000000000000000000000000000aa7443100000000000000000000000000000000000000000000000000000000009f1d437c2b682b637fb2a5d743b55087b9d028c8cbda2160e1976b0cb1ebf622309e3e0000000000000000000000001ffda89c755f6d4af069897d77ccabb580fd412a000000000000013aa2d138370190"22}23]24},25"txHash": "0x5f6d36a930ca9df53c8f449149ae11599c93bc3a9fa2a63fb82535701d8a285f"26},27{28"result": {29"type": "CALL",30"from": "0x000000014f2cd9933bf278a16bc85f745f08dd00",31"to": "0x7d9f195daf64863410af8a52b94c7bc573a6af9a",32"value": "0xac6c95a8ac627",33"gas": "0x5208",34"gasUsed": "0x5208",35"input": "0x"36},37"txHash": "0xf4d38941a4a518809b3f3f680e16af0d379c892d59b6fb27e800fc9b7cf017c3"38}39]40}