Parameters
- blockstringREQUIRED
The RLP encoded block
- 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
- result
A result array with the following fields:
- 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
- callsarray
A list of sub-calls
1{2"jsonrpc": "2.0",3"id": 1,4"result": [5{6"result": {7"gas": 253014,8"failed": false,9"returnValue": "0x",10"structLogs": [11{12"pc": 0,13"op": "PUSH1",14"gas": 338481,15"gasCost": 3,16"depth": 1,17"stack": []18}19]20},21"txHash": "0x063049bb338b74a5e46eea394fdee8e6cdc4570dcf9cc94ea2795e8a8ed9c27e"22}23]24}
1{2"jsonrpc": "2.0",3"id": 1,4"result": [5{6"result": {7"gas": 253014,8"failed": false,9"returnValue": "0x",10"structLogs": [11{12"pc": 0,13"op": "PUSH1",14"gas": 338481,15"gasCost": 3,16"depth": 1,17"stack": []18}19]20},21"txHash": "0x063049bb338b74a5e46eea394fdee8e6cdc4570dcf9cc94ea2795e8a8ed9c27e"22}23]24}