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
- resultarray
An array of traced transaction results
- txHashstring
The hash of the transaction being traced
- resultobject
Details about the traced transaction execution
- fromstring
The address the transaction is sent from
- gasstring
The gas provided for the transaction
- gasUsedstring
The gas consumed during execution
- tostring
The address the transaction is sent to
- inputstring
The input data for the transaction
- callsarray
Internal calls made during the transaction execution
- fromstring
The address initiating the call
- gasstring
The gas provided for the call
- gasUsedstring
The gas used by the call
- tostring
The address targeted by the call
- inputstring
The input data sent with the call
- valuestring
The amount of wei sent with the call
- typestring
The type of call (e.g., CALL)
- valuestring
The amount of wei sent with the transaction
- typestring
The transaction type (e.g., CALL)
1{2"jsonrpc": "2.0",3"id": 1,4"result": [5{6"result": {7"from": "0x1a2a5e805342d5139111488c59d72832055a3e8f",8"gas": "0x24dce",9"gasUsed": "0x24935",10"to": "0x5362874e334bb5a2c8083a2cf2eb3db6f3d8e33c",11"input": "0x15373e3d000000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000000000000000000000000000000000000000001",12"calls": [13{14"from": "0x5362874e334bb5a2c8083a2cf2eb3db6f3d8e33c",15"gas": "0x1c51a",16"gasUsed": "0xc208",17"to": "0x63d1447d01432e18ac769968fdf78ccc70015172",18"input": "0xfcc77c180000000000000000000000001a2a5e805342d5139111488c59d72832055a3e8f0000000000000000000000000000000000000000000000000000000000000000",19"output": "0x0000000000000000000000000000000000000000000000000000000000000064",20"calls": [21{22"from": "0x63d1447d01432e18ac769968fdf78ccc70015172",23"gas": "0x1992e",24"gasUsed": "0x1419",25"to": "0x403ecf8ba28e58ce4d1847c1c95ac54651fab151",26"input": "0xc2bc2efc0000000000000000000000001a2a5e805342d5139111488c59d72832055a3e8f",27"output": "0x00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000bc6418ce24fd96fe86f799a7f3167dcc2ea028a8562e1d88bf2282abc3992fb1",28"type": "STATICCALL"29},30{31"from": "0x63d1447d01432e18ac769968fdf78ccc70015172",32"gas": "0x178e6",33"gasUsed": "0x71a3",34"to": "0x5cf1bf680fff2ecb146ef977bf46c4cae46ba4c6",35"input": "0x861a34bd0000000000000000000000000000000000000000000000000000000000000002",36"output": "0x0000000000000000000000000000000000000000000000000000000000000064",37"type": "STATICCALL"38}39],40"type": "STATICCALL"41}42],43"value": "0x0",44"type": "CALL"45},46"txHash": "0xe9e55413b4d0b2c1beab8cda113c7a2c25c9b1b2b24aba3a4b651f0943912e17"47}48]49}
1{2"jsonrpc": "2.0",3"id": 1,4"result": [5{6"result": {7"from": "0x1a2a5e805342d5139111488c59d72832055a3e8f",8"gas": "0x24dce",9"gasUsed": "0x24935",10"to": "0x5362874e334bb5a2c8083a2cf2eb3db6f3d8e33c",11"input": "0x15373e3d000000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000000000000000000000000000000000000000001",12"calls": [13{14"from": "0x5362874e334bb5a2c8083a2cf2eb3db6f3d8e33c",15"gas": "0x1c51a",16"gasUsed": "0xc208",17"to": "0x63d1447d01432e18ac769968fdf78ccc70015172",18"input": "0xfcc77c180000000000000000000000001a2a5e805342d5139111488c59d72832055a3e8f0000000000000000000000000000000000000000000000000000000000000000",19"output": "0x0000000000000000000000000000000000000000000000000000000000000064",20"calls": [21{22"from": "0x63d1447d01432e18ac769968fdf78ccc70015172",23"gas": "0x1992e",24"gasUsed": "0x1419",25"to": "0x403ecf8ba28e58ce4d1847c1c95ac54651fab151",26"input": "0xc2bc2efc0000000000000000000000001a2a5e805342d5139111488c59d72832055a3e8f",27"output": "0x00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000bc6418ce24fd96fe86f799a7f3167dcc2ea028a8562e1d88bf2282abc3992fb1",28"type": "STATICCALL"29},30{31"from": "0x63d1447d01432e18ac769968fdf78ccc70015172",32"gas": "0x178e6",33"gasUsed": "0x71a3",34"to": "0x5cf1bf680fff2ecb146ef977bf46c4cae46ba4c6",35"input": "0x861a34bd0000000000000000000000000000000000000000000000000000000000000002",36"output": "0x0000000000000000000000000000000000000000000000000000000000000064",37"type": "STATICCALL"38}39],40"type": "STATICCALL"41}42],43"value": "0x0",44"type": "CALL"45},46"txHash": "0xe9e55413b4d0b2c1beab8cda113c7a2c25c9b1b2b24aba3a4b651f0943912e17"47}48]49}