Parameters
- objectobject
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 transaction, including for any subcalls
- tracestring
To get the basic trace of the given transaction
- stateDiffstring
To get information on the state altered by the 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, and pending for the pending state/transactions
Returns
- objectobject
The result of the traced call, which has the following fields (please note that all return types are hexadecimal representations of their data type unless otherwise stated):
- outputstring
The data which is returned as an output encoded in hexadecimal format
- stateDiffobject
The state altered by the execution of the call, keyed by account address, and it is null when the stateDiff tracer is not requested
- tracearray
The basic traces of the call:
- actionobject
The action to be performed on the receiver id:
- callTypestring
The type of method such as call or delegatecall
- fromstring
The address of the sender
- 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 integer of the value sent with this call, encoded as hexadecimal
- blockHashstring
The hash of the block in which the call was simulated
- blockNumberinteger
The number of the block in which the call was simulated (stated in decimal)
- resultobject
The result of the call:
- gasUsedstring
The amount of gas used by this call alone
- outputstring
The value returned by the contract call, and it only contains the actual value sent by the RETURN method. If the RETURN method was not executed, the output is empty bytes
- subtracesinteger
The number of contract calls made by this call
- traceAddressarray
The list of addresses where the call executed, the address of the parents and the order of the current sub call
- transactionHashstring
The hash of the simulated transaction the trace belongs to
- transactionPositioninteger
The position of the simulated transaction in the block (stated in decimal)
- typestring
The value of the method such as call or create
- vmTraceobject
The full trace of the virtual machine's state during the execution of the call, including for any sub-calls, and it is null when the vmTrace tracer is not requested
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"output": "0x000000000000000000000000000000000000000000000000000000061e37f9c5",6"stateDiff": {7"0x0000000000000000000000000000000000000000": {8"balance": "=",9"code": "=",10"nonce": {11"*": {12"from": "0x2b2c0",13"to": "0x2b2c1"14}15},16"storage": {}17}18},19"trace": [20{21"action": {22"callType": "call",23"from": "0x0000000000000000000000000000000000000000",24"to": "0x29219dd400f2bf60e5a23d13be72b486d4038894",25"value": "0x0",26"gas": "0x23c2f248",27"input": "0x70a08231000000000000000000000000324963c267c354c7660ce8ca3f5f167e05649970"28},29"blockHash": "0xacd99fe00769c38069e03e536d8094e80a7ccdaa73777ef2a53ab8be9e274a72",30"blockNumber": 76639224,31"result": {32"gasUsed": "0x79ce",33"output": "0x000000000000000000000000000000000000000000000000000000061e37f9c5"34},35"subtraces": 1,36"traceAddress": [],37"transactionHash": "0x677e3067c5b001144d88fe9f44f98ba8d265182d949b68fa68755710949a7c63",38"transactionPosition": 0,39"type": "call"40},41{42"action": {43"callType": "delegatecall",44"from": "0x29219dd400f2bf60e5a23d13be72b486d4038894",45"to": "0x229e64252e2901a424600e22c28a722404d92dcc",46"value": "0x0",47"gas": "0x2333cafb",48"input": "0x70a08231000000000000000000000000324963c267c354c7660ce8ca3f5f167e05649970"49},50"blockHash": "0xacd99fe00769c38069e03e536d8094e80a7ccdaa73777ef2a53ab8be9e274a72",51"blockNumber": 76639224,52"result": {53"gasUsed": "0x9f9",54"output": "0x000000000000000000000000000000000000000000000000000000061e37f9c5"55},56"subtraces": 0,57"traceAddress": [58059],60"transactionHash": "0x677e3067c5b001144d88fe9f44f98ba8d265182d949b68fa68755710949a7c63",61"transactionPosition": 0,62"type": "call"63}64],65"vmTrace": null66}67}
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"output": "0x000000000000000000000000000000000000000000000000000000061e37f9c5",6"stateDiff": {7"0x0000000000000000000000000000000000000000": {8"balance": "=",9"code": "=",10"nonce": {11"*": {12"from": "0x2b2c0",13"to": "0x2b2c1"14}15},16"storage": {}17}18},19"trace": [20{21"action": {22"callType": "call",23"from": "0x0000000000000000000000000000000000000000",24"to": "0x29219dd400f2bf60e5a23d13be72b486d4038894",25"value": "0x0",26"gas": "0x23c2f248",27"input": "0x70a08231000000000000000000000000324963c267c354c7660ce8ca3f5f167e05649970"28},29"blockHash": "0xacd99fe00769c38069e03e536d8094e80a7ccdaa73777ef2a53ab8be9e274a72",30"blockNumber": 76639224,31"result": {32"gasUsed": "0x79ce",33"output": "0x000000000000000000000000000000000000000000000000000000061e37f9c5"34},35"subtraces": 1,36"traceAddress": [],37"transactionHash": "0x677e3067c5b001144d88fe9f44f98ba8d265182d949b68fa68755710949a7c63",38"transactionPosition": 0,39"type": "call"40},41{42"action": {43"callType": "delegatecall",44"from": "0x29219dd400f2bf60e5a23d13be72b486d4038894",45"to": "0x229e64252e2901a424600e22c28a722404d92dcc",46"value": "0x0",47"gas": "0x2333cafb",48"input": "0x70a08231000000000000000000000000324963c267c354c7660ce8ca3f5f167e05649970"49},50"blockHash": "0xacd99fe00769c38069e03e536d8094e80a7ccdaa73777ef2a53ab8be9e274a72",51"blockNumber": 76639224,52"result": {53"gasUsed": "0x9f9",54"output": "0x000000000000000000000000000000000000000000000000000000061e37f9c5"55},56"subtraces": 0,57"traceAddress": [58059],60"transactionHash": "0x677e3067c5b001144d88fe9f44f98ba8d265182d949b68fa68755710949a7c63",61"transactionPosition": 0,62"type": "call"63}64],65"vmTrace": null66}67}