Parameters
- hashstring
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 result (all return values are hexadecimal unless otherwise noted):
- outputstring
The output returned by the execution, encoded in hexadecimal
- stateDiffstring
The altered Ethereum state due to execution of the given transaction, or null if not available
- tracearray
An array of trace objects describing the execution path
- typestring
The type of trace, e.g., 'call' or 'create'
- actionobject
The action performed in this trace step
- fromstring
The address of the sender
- callTypestring
The type of call such as 'call' or 'delegatecall'
- gasstring
The gas provided for the call, encoded as hexadecimal
- inputstring
The input data sent with the transaction, encoded as hexadecimal
- tostring
The address of the receiver
- valuestring
The value sent with this transaction, encoded as hexadecimal
- resultobject
The result of the call execution
- gasUsedstring
The amount of gas used by this call, encoded as hexadecimal
- outputstring
The return value from the call; contains bytes returned by the RETURN opcode, or '0x' if empty
- subtracesinteger
The number of sub-traces (nested calls) made by this transaction
- traceAddressarray
The call path to this trace (an array of integers representing depth and order of execution)
- vmTracestring
The full trace of the EVM state during execution, or null if not enabled
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"output": "0x",6"stateDiff": null,7"trace": [8{9"action": {10"from": "0x9cc573c775c61d7a783f125d9ff5c3df60a2e718",11"callType": "call",12"gas": "0x0",13"input": "0x",14"to": "0x885885521990b53fd00556c143ea056dd2f62a12",15"value": "0x8cc0c47d9477f90"16},17"result": {18"gasUsed": "0x0",19"output": "0x"20},21"subtraces": 0,22"traceAddress": [],23"type": "call"24}25],26"vmTrace": null,27"transactionHash": "0x3277c743c14e482243862c03a70e83ccb52e25cb9e54378b20a8303f15cb985d"28}29}
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"output": "0x",6"stateDiff": null,7"trace": [8{9"action": {10"from": "0x9cc573c775c61d7a783f125d9ff5c3df60a2e718",11"callType": "call",12"gas": "0x0",13"input": "0x",14"to": "0x885885521990b53fd00556c143ea056dd2f62a12",15"value": "0x8cc0c47d9477f90"16},17"result": {18"gasUsed": "0x0",19"output": "0x"20},21"subtraces": 0,22"traceAddress": [],23"type": "call"24}25],26"vmTrace": null,27"transactionHash": "0x3277c743c14e482243862c03a70e83ccb52e25cb9e54378b20a8303f15cb985d"28}29}