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:
- 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
The data which is returned as an output
- calls
A list of sub-calls
1{2"jsonrpc": "2.0",3"id": 1,4"result": [5{6"type": "CALL",7"from": "0x5A0b54D5dc17e0AadC383d2db43B0a0D3E029c4c",8"to": "0xdAC17F958D2ee523a2206206994597C13D831ec7",9"value": "0x0",10"gas": "0x15f90",11"gasUsed": "0xd880",12"input": "0xa9059cbb000000000000000000000000c6cde7c39eb2f0f0095f41570af89efc2c1ea828000000000000000000000000000000000000000000000000000000003b9aca00",13"output": "0x0000000000000000000000000000000000000000000000000000000000000001",14"calls": [15{16"type": "STATICCALL",17"from": "0xdAC17F958D2ee523a2206206994597C13D831ec7",18"to": "0xb46d4e66c0445e3b1a7df818f5fc5e9aedb90da2",19"gas": "0xbf83",20"gasUsed": "0x383",21"input": "0x70a082310000000000000000000000005a0b54d5dc17e0aadc383d2db43b0a0d3e029c4c",22"output": "0x00000000000000000000000000000000000000000000000000000002540be400"23}24]25},26{27"type": "CALL",28"from": "0x8894e0a0c962cb723c1976a4421c95949be2d4e3",29"to": "0x6b175474e89094c44da98b954eedeac495271d0f",30"value": "0x0",31"gas": "0x30d40",32"gasUsed": "0x10a88",33"input": "0x23b872dd0000000000000000000000008894e0a0c962cb723c1976a4421c95949be2d4e3000000000000000000000000a478c2975ab1ea89e8196811f51a7b7ade33eb11000000000000000000000000000000000000000000000054b419212a0b334000",34"output": "0x0000000000000000000000000000000000000000000000000000000000000001",35"calls": []36}37]38}
1{2"jsonrpc": "2.0",3"id": 1,4"result": [5{6"type": "CALL",7"from": "0x5A0b54D5dc17e0AadC383d2db43B0a0D3E029c4c",8"to": "0xdAC17F958D2ee523a2206206994597C13D831ec7",9"value": "0x0",10"gas": "0x15f90",11"gasUsed": "0xd880",12"input": "0xa9059cbb000000000000000000000000c6cde7c39eb2f0f0095f41570af89efc2c1ea828000000000000000000000000000000000000000000000000000000003b9aca00",13"output": "0x0000000000000000000000000000000000000000000000000000000000000001",14"calls": [15{16"type": "STATICCALL",17"from": "0xdAC17F958D2ee523a2206206994597C13D831ec7",18"to": "0xb46d4e66c0445e3b1a7df818f5fc5e9aedb90da2",19"gas": "0xbf83",20"gasUsed": "0x383",21"input": "0x70a082310000000000000000000000005a0b54d5dc17e0aadc383d2db43b0a0d3e029c4c",22"output": "0x00000000000000000000000000000000000000000000000000000002540be400"23}24]25},26{27"type": "CALL",28"from": "0x8894e0a0c962cb723c1976a4421c95949be2d4e3",29"to": "0x6b175474e89094c44da98b954eedeac495271d0f",30"value": "0x0",31"gas": "0x30d40",32"gasUsed": "0x10a88",33"input": "0x23b872dd0000000000000000000000008894e0a0c962cb723c1976a4421c95949be2d4e3000000000000000000000000a478c2975ab1ea89e8196811f51a7b7ade33eb11000000000000000000000000000000000000000000000054b419212a0b334000",34"output": "0x0000000000000000000000000000000000000000000000000000000000000001",35"calls": []36}37]38}