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
- objectobject
The transaction trace call object or null if no trace was found
- typestring
The type of the call such as CALL or STATICCALL
- fromstring
The address the call was made from
- tostring
The address the call was made to
- valuestring
The amount of value transferred in wei encoded as hexadecimal
- gasstring
The amount of gas provided for the call encoded as hexadecimal
- gasUsedstring
The amount of gas consumed during the call encoded as hexadecimal
- inputstring
The data sent with the call
- outputstring
(Optional) The data returned from the call
- errorstring
(Optional) The error message if the call failed such as execution reverted
- callsarray
(Optional) The list of internal sub-calls triggered during this call
- typestring
The type of the sub-call such as CALL or STATICCALL
- fromstring
The address the sub-call was made from
- tostring
The address the sub-call was made to
- valuestring
The amount of value transferred in the sub-call encoded as hexadecimal
- gasstring
The amount of gas provided for the sub-call encoded as hexadecimal
- gasUsedstring
The amount of gas consumed during the sub-call encoded as hexadecimal
- inputstring
The data sent with the sub-call
- outputstring
The data returned from the sub-call
- errorstring
The error message if the sub-call failed such as execution reverted
- callsarray
The nested list of sub-calls inside this sub-call
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"from": "0x688c1de81ce07a698679928ae319bbe503da1a5d",6"gas": "0x226c9",7"gasUsed": "0x1a529",8"input": "0xaea01419000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000b7180b07bd1906c59af640bd8eeab367b7594f9af0fc90ecd5ebe7c0a1be8a4e536f3393fd943b12745241929d83318675e662c725c1ede53fcb3b8396277bf617b5839bd4d6e005d4dda81701f87378e34cb9cbd113c435db0c10ac07f2465579615210131a0c66381308e606e3b6da4a360285b8865010f14d3c3f92aa9043d6d48b0e6493b6b63887c0fbfe88c48d280c01cbf4df2a77a7221536436b02c0382ab5368bb19710ec9ba7bf6375faf6d4936e21152556361682e63b083f0b61402ac2171cc082861c603adf7e26abfc9c196e8fe07491088f1a887a8e2124e90f9b26afe29ac9f0c44594eb6ad83ce13fc4362fb86cd71e5d8133548a9ed2165d90a60b7959951ce31ebe733f8e648987339c66246b7dcab61eae5c6f95604a2133af90e4ee678878c0c249c07e4f3159c5e7bef52a67baf54e075715cc39b4795940b8f2632eabc4a68d61d83c4ed2a4b4a2a1d80da98ee8a74a0d497924866",9"to": "0xf15176bc2a8d95102e21641fc0c3b1a9990d2d2d",10"type": "CALL",11"value": "0x0"12}13}
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"from": "0x688c1de81ce07a698679928ae319bbe503da1a5d",6"gas": "0x226c9",7"gasUsed": "0x1a529",8"input": "0xaea01419000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000b7180b07bd1906c59af640bd8eeab367b7594f9af0fc90ecd5ebe7c0a1be8a4e536f3393fd943b12745241929d83318675e662c725c1ede53fcb3b8396277bf617b5839bd4d6e005d4dda81701f87378e34cb9cbd113c435db0c10ac07f2465579615210131a0c66381308e606e3b6da4a360285b8865010f14d3c3f92aa9043d6d48b0e6493b6b63887c0fbfe88c48d280c01cbf4df2a77a7221536436b02c0382ab5368bb19710ec9ba7bf6375faf6d4936e21152556361682e63b083f0b61402ac2171cc082861c603adf7e26abfc9c196e8fe07491088f1a887a8e2124e90f9b26afe29ac9f0c44594eb6ad83ce13fc4362fb86cd71e5d8133548a9ed2165d90a60b7959951ce31ebe733f8e648987339c66246b7dcab61eae5c6f95604a2133af90e4ee678878c0c249c07e4f3159c5e7bef52a67baf54e075715cc39b4795940b8f2632eabc4a68d61d83c4ed2a4b4a2a1d80da98ee8a74a0d497924866",9"to": "0xf15176bc2a8d95102e21641fc0c3b1a9990d2d2d",10"type": "CALL",11"value": "0x0"12}13}