Parameters
- 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
- blockNumberstring
The block number as a string in hexadecimal format or tags. The supported tag values include earliest for the earliest/genesis block, latest for the latest mined block, pending for the pending state/transactions, safe for the most recent secure block, and finalized for the most recent secure block accepted by more than 2/3 of validators. safe and finalized are only supported on Ethereum and Gnosis
Returns
- arrayarray
An array of block trace results (all return values are hexadecimal unless otherwise noted):
- outputstring
The data returned as an output, encoded in hexadecimal
- stateDiffstring
The altered Ethereum state due to execution of the given transaction, or empty 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, e.g., '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 the transaction, encoded as hexadecimal
- resultobject
The result of the call execution
- gasUsedstring
The amount of gas used by this specific call, encoded as hexadecimal
- outputstring
The return value from the contract 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
A list representing the call path to this trace (parent calls and order of execution)
- vmTraceobject
The full EVM execution trace, or empty if not enabled
1{2"jsonrpc": "2.0",3"id": 1,4"result": [5{6"output": "0x",7"stateDiff": null,8"trace": [9{10"type": "call",11"action": {12"from": "0x0000000000000000000000000000000000000000",13"callType": "call",14"gas": "0x24b8",15"input": "0x",16"to": "0x6b175474e89094c44da98b954eedeac495271d0f",17"value": "0x0"18},19"result": {20"gasUsed": "0x0",21"output": "0x"22},23"subtraces": 0,24"traceAddress": []25}26],27"vmTrace": null28},29{30"output": "0x",31"stateDiff": null,32"trace": [33{34"type": "call",35"action": {36"from": "0x0000000000000000000000000000000000000000",37"callType": "call",38"gas": "0x24b8",39"input": "0x",40"to": "0x6b175474e89094c44da98b954eedeac495271d0f",41"value": "0x0"42},43"result": {44"gasUsed": "0x0",45"output": "0x"46},47"subtraces": 0,48"traceAddress": []49}50],51"vmTrace": null52}53]54}
1{2"jsonrpc": "2.0",3"id": 1,4"result": [5{6"output": "0x",7"stateDiff": null,8"trace": [9{10"type": "call",11"action": {12"from": "0x0000000000000000000000000000000000000000",13"callType": "call",14"gas": "0x24b8",15"input": "0x",16"to": "0x6b175474e89094c44da98b954eedeac495271d0f",17"value": "0x0"18},19"result": {20"gasUsed": "0x0",21"output": "0x"22},23"subtraces": 0,24"traceAddress": []25}26],27"vmTrace": null28},29{30"output": "0x",31"stateDiff": null,32"trace": [33{34"type": "call",35"action": {36"from": "0x0000000000000000000000000000000000000000",37"callType": "call",38"gas": "0x24b8",39"input": "0x",40"to": "0x6b175474e89094c44da98b954eedeac495271d0f",41"value": "0x0"42},43"result": {44"gasUsed": "0x0",45"output": "0x"46},47"subtraces": 0,48"traceAddress": []49}50],51"vmTrace": null52}53]54}