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
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
(Conditional) 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
- errorstring
(Conditional) Error message when execution fails.
1{2"jsonrpc": "2.0",3"id": 1,4"result": [5{6"result": {7"from": "0xfffffffffffffffffffffffffffffffffffffffe",8"gas": "0x1c9c380",9"gasUsed": "0x5640",10"to": "0x0000000000000000000000000000000000002002",11"input": "0x092193ab000000000000000000000000514708beda3441cc4e141f8546c096eaab7c8a05",12"error": "insufficient balance for transfer",13"value": "0x3782dace9d900000",14"type": "CALL"15},16"txHash": "0x5d005403489e1bc301344d2b51fa7f403372cf4e7941c2861aa320f1605c9dd4"17}18]19}
1{2"jsonrpc": "2.0",3"id": 1,4"result": [5{6"result": {7"from": "0xfffffffffffffffffffffffffffffffffffffffe",8"gas": "0x1c9c380",9"gasUsed": "0x5640",10"to": "0x0000000000000000000000000000000000002002",11"input": "0x092193ab000000000000000000000000514708beda3441cc4e141f8546c096eaab7c8a05",12"error": "insufficient balance for transfer",13"value": "0x3782dace9d900000",14"type": "CALL"15},16"txHash": "0x5d005403489e1bc301344d2b51fa7f403372cf4e7941c2861aa320f1605c9dd4"17}18]19}