Parameters
- hashstringREQUIRED
The hash of a transaction
- arrayarrayREQUIRED
The type of trace, which can be one of the following:
- vmTracestring
To get a full trace of the virtual machine's state during the execution of the given of given transaction, including for any subcalls
- tracestring
To get the basic trace of the given transaction
- stateDiffstring
To get information on altered Ethereum state due to execution of the given transaction
Returns
- objectobject
The block trace object with the following fields (all return values are hexadecimal unless otherwise noted):
- outputstring
The data returned as an output encoded in hexadecimal format
- stateDiffobject
The altered Ethereum state due to execution of the transaction, null if no state changes
- tracearray
An array containing the basic trace of the transaction execution
- actionobject
The action performed during the trace
- fromstring
The address of the sender
- callTypestring
The type of call such as call, delegatecall, staticcall
- gasstring
The gas provided by the sender, encoded as hexadecimal
- inputstring
The data sent along with the call
- tostring
The address of the receiver
- valuestring
The value sent with this call, encoded as hexadecimal
- resultobject
The result of the trace execution
- gasUsedstring
The gas used by this specific call, encoded as hexadecimal
- outputstring
The value returned by the contract call or empty bytes if no RETURN was executed
- subtracesinteger
The number of subtraces created by this call
- traceAddressarray
The list of addresses identifying the position of this call in the trace tree
- typestring
The type of trace such as call or create
- vmTraceobject
The full trace of the virtual machine's state during execution, null if not requested
- transactionHashstring
The transaction hash corresponding to this trace
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"output": "0x0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000001661726e6f6c642e6368616e40636972636c652e636f6d00000000000000000000",6"stateDiff": null,7"trace": [],8"vmTrace": null9}10}
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"output": "0x0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000001661726e6f6c642e6368616e40636972636c652e636f6d00000000000000000000",6"stateDiff": null,7"trace": [],8"vmTrace": null9}10}