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
- arrayarray
The array of transaction trace results
- resultobject
The trace result object containing the execution details of the transaction
- fromstring
The address that initiated the call
- gasstring
The amount of gas provided for the call encoded as a hexadecimal string
- gasUsedstring
The amount of gas consumed during the call encoded as a hexadecimal string
- tostring
The address the call was made to
- inputstring
Hex-encoded calldata sent with the call
- valuestring
The amount of value transferred in wei encoded as a hexadecimal string
- typestring
The type of the call such as CALL, STATICCALL, or DELEGATECALL
- txHashstring
The transaction hash associated with this trace
1{2"jsonrpc": "2.0",3"id": 1,4"result": [5{6"txHash": "0x71ec1b60298dbb295aaf2c18561f41686e88fd1edfe9bf9a0059170d327d25e7",7"result": {8"calls": [9{10"from": "0x4200000000000000000000000000000000000015",11"gas": "0xe9b52",12"gasUsed": "0x3fdf",13"input": "0x440a5e20000007d0000dbba0000000000000000b00000000672cc02300000000014282c2000000000000000000000000000000000000000000000000000000032b5a2481000000000000000000000000000000000000000000000000000000000007dcc27f63f53bba0ae499651943bdda527a116df9f2529fd15b88be3b9bc46094d9ad0000000000000000000000002f60a5184c63ca94f82a27100643dbabe4f3f7fd",14"to": "0xc0d3c0d3c0d3c0d3c0d3c0d3c0d3c0d3c0d30015",15"type": "DELEGATECALL",16"value": "0x0"17}18],19"from": "0xdeaddeaddeaddeaddeaddeaddeaddeaddead0001",20"gas": "0xf4240",21"gasUsed": "0xab96",22"input": "0x440a5e20000007d0000dbba0000000000000000b00000000672cc02300000000014282c2000000000000000000000000000000000000000000000000000000032b5a2481000000000000000000000000000000000000000000000000000000000007dcc27f63f53bba0ae499651943bdda527a116df9f2529fd15b88be3b9bc46094d9ad0000000000000000000000002f60a5184c63ca94f82a27100643dbabe4f3f7fd",23"to": "0x4200000000000000000000000000000000000015",24"type": "CALL",25"value": "0x0"26}27}28]29}
1{2"jsonrpc": "2.0",3"id": 1,4"result": [5{6"txHash": "0x71ec1b60298dbb295aaf2c18561f41686e88fd1edfe9bf9a0059170d327d25e7",7"result": {8"calls": [9{10"from": "0x4200000000000000000000000000000000000015",11"gas": "0xe9b52",12"gasUsed": "0x3fdf",13"input": "0x440a5e20000007d0000dbba0000000000000000b00000000672cc02300000000014282c2000000000000000000000000000000000000000000000000000000032b5a2481000000000000000000000000000000000000000000000000000000000007dcc27f63f53bba0ae499651943bdda527a116df9f2529fd15b88be3b9bc46094d9ad0000000000000000000000002f60a5184c63ca94f82a27100643dbabe4f3f7fd",14"to": "0xc0d3c0d3c0d3c0d3c0d3c0d3c0d3c0d3c0d30015",15"type": "DELEGATECALL",16"value": "0x0"17}18],19"from": "0xdeaddeaddeaddeaddeaddeaddeaddeaddead0001",20"gas": "0xf4240",21"gasUsed": "0xab96",22"input": "0x440a5e20000007d0000dbba0000000000000000b00000000672cc02300000000014282c2000000000000000000000000000000000000000000000000000000032b5a2481000000000000000000000000000000000000000000000000000000000007dcc27f63f53bba0ae499651943bdda527a116df9f2529fd15b88be3b9bc46094d9ad0000000000000000000000002f60a5184c63ca94f82a27100643dbabe4f3f7fd",23"to": "0x4200000000000000000000000000000000000015",24"type": "CALL",25"value": "0x0"26}27}28]29}