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
- 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
- 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
- output
(Optional) The data which is returned as an output
- error
(Optional) The type of error, if any
- revertReason
(Optional) The type Solidity revert reason, if any
- calls
(Optional) An array containing information about internal calls made during the transaction. It can also have subcalls
- 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
- error
(Optional) The type of error, if any
- revertReason
(Optional) The type Solidity revert reason, if any
- value
The value (in Wei) sent with the call
- type
The type of call (e.g., CALL or STATICCALL)
- calls
(Optional) The sub-calls associated with the call
- 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": "0x72c46442b29c26e080479c2432b219ec955609cf64177c882b36f03fb20210a8",7"result": {8"from": "0x7492933bb94f79df306feb86a4ed1927a0a51b31",9"gas": "0x5208",10"gasUsed": "0x5208",11"input": "0x",12"to": "0x9386cdccbf11335587f2c769bb88e6e30685945e",13"type": "CALL",14"value": "0x2386f26fc10000"15}16}17]18}
1{2"jsonrpc": "2.0",3"id": 1,4"result": [5{6"txHash": "0x72c46442b29c26e080479c2432b219ec955609cf64177c882b36f03fb20210a8",7"result": {8"from": "0x7492933bb94f79df306feb86a4ed1927a0a51b31",9"gas": "0x5208",10"gasUsed": "0x5208",11"input": "0x",12"to": "0x9386cdccbf11335587f2c769bb88e6e30685945e",13"type": "CALL",14"value": "0x2386f26fc10000"15}16}17]18}