Parameters
- transactionHashstringREQUIRED
The transaction hash that needs to be traced, encoded in hexadecimal format
- 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
- timeoutstring
A string of decimal integers that overrides the JavaScript-based tracing calls default timeout of 5 seconds.
Returns
- typestring
The type of the call
- fromstring
The address the transaction is sent from
- tostring
The address the transaction is directed to
- valuestring
The integer of the value sent with this transaction
- gasstring
The integer of the gas provided for the transaction execution
- gasUsedstring
The integer of the gas used
- inputstring
The data given at the time of input
- outputstring
(Optional) The data which is returned as an output
- errorstring
(Optional) The type of error, if any
- revertReasonstring
(Optional) The type solidity revert reason, if any
- callsarray
(Optional) A list of sub-calls
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"from": "0x6f49a8f621353f12378d0046e7d7e4b9b249dc9e",6"gas": "0x0",7"gasUsed": "0x0",8"input": "0x791bdcf3000000000000000000000000c9cffd296884ffaad0abbfc7301d36ac1f490d32",9"to": "0x0000000000000000000000000000000000001000",10"type": "CALL",11"value": "0x15af1d78b58c40000"12}13}
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"from": "0x6f49a8f621353f12378d0046e7d7e4b9b249dc9e",6"gas": "0x0",7"gasUsed": "0x0",8"input": "0x791bdcf3000000000000000000000000c9cffd296884ffaad0abbfc7301d36ac1f490d32",9"to": "0x0000000000000000000000000000000000001000",10"type": "CALL",11"value": "0x15af1d78b58c40000"12}13}