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
- timeoutobject
A string of decimal integers that overrides the JavaScript-based tracing calls default timeout of 5 seconds.
Returns
- resultobject
The transaction call trace.
- fromstring
The address from which the transaction was sent.
- gasstring
The gas provided for the transaction, encoded as a hexadecimal value.
- gasUsedstring
The gas used by the transaction, encoded as a hexadecimal value.
- inputstring
The input data supplied to the transaction.
- tostring
The address to which the transaction was sent.
- typestring
The type of call.
- valuestring
The value transferred by the transaction, encoded as a hexadecimal value.
1{2"jsonrpc": "2.0",3"result": {4"from": "0x5ad176ebb13cabe62ee7c07f52a67b4a48cbef83",5"gas": "0x61a80",6"gasUsed": "0x98d2",7"input": "0xda1750b0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000010000000404624044d1509a0460ae9dc9236b04602aaee65ef7045e993727d9b3",8"to": "0xbbe55e29bbc6d71ecab1ac011c9ac5206ab2fe74",9"type": "CALL",10"value": "0x0"11},12"id": 113}
1{2"jsonrpc": "2.0",3"result": {4"from": "0x5ad176ebb13cabe62ee7c07f52a67b4a48cbef83",5"gas": "0x61a80",6"gasUsed": "0x98d2",7"input": "0xda1750b0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000010000000404624044d1509a0460ae9dc9236b04602aaee65ef7045e993727d9b3",8"to": "0xbbe55e29bbc6d71ecab1ac011c9ac5206ab2fe74",9"type": "CALL",10"value": "0x0"11},12"id": 113}