Parameters
- objectobject
The transaction call object with the following fields:
- fromstring
The initiating Ethereum address for the transfer, which will be null if not applicable
- tostring
The address the transaction is directed to, which will be null if not applicable
- gasstring
The integer of the gas provided for the transaction execution
- gasPricestring
The integer of the gasPrice used for each paid gas
- valuestring
The integer of the value sent with this transaction
- datastring
The hash of the method signature and encoded parameters
- blockReferencestring
The block number in hexadecimal format, the block hash, 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
- 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
- resultobject
The transaction trace object, which has the following fields:
- fromstring
The address the transaction is sent from
- gasstring
The gas provided for the transaction execution
- gasUsedstring
The gas used during execution
- inputstring
The input data sent with the transaction
- outputstring
The data which is returned as an output
- tostring
The address the transaction is directed to
- typestring
The type of the call (e.g., CALL, DELEGATECALL, STATICCALL, etc.)
- valuestring
The value (in Wei) sent with the transaction
1{2"jsonrpc": "2.0",3"result": {4"from": "0x0000000000000000000000000000000000000000",5"gas": "0x5f5e100",6"gasUsed": "0x5db9",7"input": "0x70a082310000000000000000000000005ad176ebb13cabe62ee7c07f52a67b4a48cbef83",8"output": "0x0000000000000000000000000000000000000000000000000000000000000000",9"to": "0x4200000000000000000000000000000000000006",10"type": "CALL",11"value": "0x0"12},13"id": 114}
1{2"jsonrpc": "2.0",3"result": {4"from": "0x0000000000000000000000000000000000000000",5"gas": "0x5f5e100",6"gasUsed": "0x5db9",7"input": "0x70a082310000000000000000000000005ad176ebb13cabe62ee7c07f52a67b4a48cbef83",8"output": "0x0000000000000000000000000000000000000000000000000000000000000000",9"to": "0x4200000000000000000000000000000000000006",10"type": "CALL",11"value": "0x0"12},13"id": 114}