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
- diffModeboolean
When set to true, enables a differential tracing mode, highlighting variations in execution between multiple calls or states
Returns
- result
A result array with the following fields:
- type
The type of the call
- from
The address the transaction is sent from
- to
The address the transaction is directed to
- value
The integer of the value sent with this transaction
- gas
The integer of the gas provided for the transaction execution
- gasUsed
The integer of the gas used
- input
The data given at the time of input
- output
(Optional) The data which is returned as an output; not always present (e.g. for some STATICCALLs)
- calls
(Optional) A list of sub-calls; only present when the call frame contains internal calls
1{2"jsonrpc": "2.0",3"id": 1,4"result": [5{6"from": "0x4982085c9e2f89f2ecb8131eca71afad896e89cb",7"gas": "0x14155",8"gasUsed": "0xd62d",9"input": "0xa9059cbb000000000000000000000000b9b9161c6440353d30e06f6a3f93cd43bd1e39070000000000000000000000000000000000000000000004eeb297cc32be320000",10"output": "0x0000000000000000000000000000000000000000000000000000000000000001",11"to": "0x524df384bffb18c0c8f3f43d012011f8f9795579",12"type": "CALL",13"value": "0x0"14}15]16}
1{2"jsonrpc": "2.0",3"id": 1,4"result": [5{6"from": "0x4982085c9e2f89f2ecb8131eca71afad896e89cb",7"gas": "0x14155",8"gasUsed": "0xd62d",9"input": "0xa9059cbb000000000000000000000000b9b9161c6440353d30e06f6a3f93cd43bd1e39070000000000000000000000000000000000000000000004eeb297cc32be320000",10"output": "0x0000000000000000000000000000000000000000000000000000000000000001",11"to": "0x524df384bffb18c0c8f3f43d012011f8f9795579",12"type": "CALL",13"value": "0x0"14}15]16}