Parameters
- objectobjectREQUIRED
The transaction call object which contains the following fields:
- fromstring
The string of the address the transaction is sent from
- tostringREQUIRED
The string of the address to the transaction is directed to
- gasinteger
The integer of the gas provided for the transaction execution
- gasPriceinteger
The integer of the gasPrice used for each paid gas encoded as hexadecimal
- valueinteger
The integer of the value sent with this transaction encoded as hexadecimal
- datastring
The string of the hash of the method signature and encoded parameters, see the Ethereum Contract ABI
- 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 subcells
- 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
- objectobject
The transaction trace result object
- outputstring
The data returned as output encoded in hexadecimal format
- stateDiffobject
The altered Ethereum state due to execution of the given transaction, or null if not available
- tracearray
An array of basic trace objects for the given transaction
- actionobject
The action performed during the trace
- fromstring
The address of the sender
- callTypestring
The type of call such as call, staticcall, delegatecall
- gasstring
The gas provided by the sender, encoded as hexadecimal
- inputstring
The data sent along with the transaction
- tostring
The address of the receiver
- valuestring
The value sent with this transaction, encoded as hexadecimal
- resultobject
The execution result of the trace
- gasUsedstring
The amount of gas used by this trace
- outputstring
The return value of the contract call, empty if no RETURN executed
- subtracesinteger
The number of subtraces (internal calls) within this trace
- traceAddressarray
The list of addresses where the call executed, including parent calls and order
- typestring
The type of the trace, such as call or create
- vmTraceobject
The full trace of the virtual machine's state during execution, including sub-calls, or null if not available
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"object": {6"output": "example_value",7"stateDiff": {},8"trace": [9{10"action": {11"from": "example_value",12"callType": "example_value",13"gas": "example_value",14"input": "example_value",15"to": "example_value",16"value": "example_value"17},18"result": {19"gasUsed": "example_value",20"output": "example_value"21},22"subtraces": 1,23"traceAddress": [],24"type": "example_value"25}26],27"vmTrace": {}28}29}30}
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"object": {6"output": "example_value",7"stateDiff": {},8"trace": [9{10"action": {11"from": "example_value",12"callType": "example_value",13"gas": "example_value",14"input": "example_value",15"to": "example_value",16"value": "example_value"17},18"result": {19"gasUsed": "example_value",20"output": "example_value"21},22"subtraces": 1,23"traceAddress": [],24"type": "example_value"25}26],27"vmTrace": {}28}29}30}