Parameters
- blockHashstringREQUIRED
The hash of the block to be traced
- 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 result object which contains the following fields:
- txHashstring
The hash of the transaction being traced
- resultobject
An object containing detailed information about the traced transaction
- fromstring
The address the transaction is sent from
- gasstring
The integer of the gas provided for the transaction execution
- gasUsedstring
The integer of the gas used
- tostring
The address the transaction is directed to
- inputstring
The data given at the time of input
- callsstring
(Optional) An array containing information about internal calls made during the transaction
- fromstring
The address making the call
- gasstring
The gas limit specified for the call
- gasUsedstring
The amount of gas used during the call
- tostring
The address being called
- inputstring
The input data for the call
- outputstring
(Optional) The output data of the call
- valuestring
The value (in Wei) sent with the call
- typestring
The type of call (e.g., CALL or CREATE)
- valuestring
The integer of the value sent with this transaction
- typestring
The type of the call
1{2"jsonrpc": "2.0",3"id": 1,4"result": [5{6"txHash": "0x1c82bfad3f01525d211264b68e89d5f147fd6f9a7aea548bbba137383674057d",7"result": {8"from": "0x6f49a8f621353f12378d0046e7d7e4b9b249dc9e",9"gas": "0x0",10"gasUsed": "0x0",11"input": "0x791bdcf3000000000000000000000000c9cffd296884ffaad0abbfc7301d36ac1f490d32",12"to": "0x0000000000000000000000000000000000001000",13"type": "CALL",14"value": "0x15af1d78b58c40000"15}16},17{18"txHash": "0x0e11f08449bfe99bfe2c0ef55ce90a07d206243f8333505c2836f3b8c74b7d21",19"result": {20"from": "0x4b91a33d855dddbce4012365e8c6d9a5bec71bd2",21"gas": "0x1e8480",22"gasUsed": "0x1e8480",23"input": "0xbe8345287c5ba716941f50a80020911ac2e07c681e00003fe12728ea1b89e4bac6e59a9130b61a27d0321e0100000000000000000000000000000000000000000000000000be8345287c5ba716941f50a8002091c2e07c681e0000008cc10470e895fe0d7b0e193f65f88eefb82fb41e0100000000000000000000000000010002f80300041a05d00600000006",24"to": "0x58b448675de1749aa6de923da4049bca0c0bf860",25"type": "CALL",26"value": "0x3"27}28},29{30"txHash": "0xb533acacb1394fbba4abd1c0c72be4ad87c3437e8ffb75bd54d77a2581574334",31"result": {32"from": "0xae827a380504d1f19bae0ef9bca554090589aa44",33"gas": "0x1e8480",34"gasUsed": "0x1e8480",35"input": "0xbe8345287c5ba716941f50a80020911ac2e07c681e00003fe12728ea1b89e4bac6e59a9130b61a27d0321e0100000000000000000000000000000000000000000000000000be8345287c5ba716941f50a8002091c2e07c681e0000008cc10470e895fe0d7b0e193f65f88eefb82fb41e0100000000000000000000000000010002f80300041a05d00600000006",36"to": "0x58b448675de1749aa6de923da4049bca0c0bf860",37"type": "CALL",38"value": "0x3"39}40}41]42}
1{2"jsonrpc": "2.0",3"id": 1,4"result": [5{6"txHash": "0x1c82bfad3f01525d211264b68e89d5f147fd6f9a7aea548bbba137383674057d",7"result": {8"from": "0x6f49a8f621353f12378d0046e7d7e4b9b249dc9e",9"gas": "0x0",10"gasUsed": "0x0",11"input": "0x791bdcf3000000000000000000000000c9cffd296884ffaad0abbfc7301d36ac1f490d32",12"to": "0x0000000000000000000000000000000000001000",13"type": "CALL",14"value": "0x15af1d78b58c40000"15}16},17{18"txHash": "0x0e11f08449bfe99bfe2c0ef55ce90a07d206243f8333505c2836f3b8c74b7d21",19"result": {20"from": "0x4b91a33d855dddbce4012365e8c6d9a5bec71bd2",21"gas": "0x1e8480",22"gasUsed": "0x1e8480",23"input": "0xbe8345287c5ba716941f50a80020911ac2e07c681e00003fe12728ea1b89e4bac6e59a9130b61a27d0321e0100000000000000000000000000000000000000000000000000be8345287c5ba716941f50a8002091c2e07c681e0000008cc10470e895fe0d7b0e193f65f88eefb82fb41e0100000000000000000000000000010002f80300041a05d00600000006",24"to": "0x58b448675de1749aa6de923da4049bca0c0bf860",25"type": "CALL",26"value": "0x3"27}28},29{30"txHash": "0xb533acacb1394fbba4abd1c0c72be4ad87c3437e8ffb75bd54d77a2581574334",31"result": {32"from": "0xae827a380504d1f19bae0ef9bca554090589aa44",33"gas": "0x1e8480",34"gasUsed": "0x1e8480",35"input": "0xbe8345287c5ba716941f50a80020911ac2e07c681e00003fe12728ea1b89e4bac6e59a9130b61a27d0321e0100000000000000000000000000000000000000000000000000be8345287c5ba716941f50a8002091c2e07c681e0000008cc10470e895fe0d7b0e193f65f88eefb82fb41e0100000000000000000000000000010002f80300041a05d00600000006",36"to": "0x58b448675de1749aa6de923da4049bca0c0bf860",37"type": "CALL",38"value": "0x3"39}40}41]42}