Parameters
The raw transaction data/string
The type of trace, which can be one of the following:
To get a full trace of the virtual machine's state during the execution of the given of given transaction, including for any subcalls
To get the basic trace of the given transaction
To get information on altered Ethereum state due to execution of the given transaction
Returns
The block traces, which have the following fields (please note that all return types are hexadecimal representations of their data type unless otherwise stated):
The data which is returned as an output encoded in hexadecimal format
It returns the information on altered Ethereum state due to execution of the given transaction
It is used to retrieve the basic trace of the given information
The action to be performed on the receiver id
The address of the sender
The type of method such as call, delegatecall
The gas provided by the sender, encoded as hexadecimal
The data sent along with the transaction
The address of the receiver
The integer of the value sent with this transaction, encoded as hexadecimal
The integer of the gas price used encoded as hexadecimal
The total used gas by all transactions in this block encoded as hexadecimal
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
The traces of contract calls made by the transaction
The list of addresses where the call was executed, the address of the parents, and the order of the current sub call
The value of the method such as call or create
It is used to get a full trace of the virtual machine's state during the execution of the given transaction, including for any sub-calls
1{2"jsonrpc": "2.0",3"id": 1,4"result": [5{6"output": "0x",7"stateDiff": null,8"trace": [9{10"action": {11"from": "0x627306090abab3a6e1400e9345bc60c78a8bef57",12"callType": "call",13"gas": "0x7a120",14"input": "0xa9059cbb000000000000000000000000d46e8dd67c5d32be8058bb8eb970870f0724456700000000000000000000000000000000000000000000000000de0b6b3a7640000",15"to": "0xdac17f958d2ee523a2206206994597c13d831ec7",16"value": "0x0"17},18"result": {19"gasUsed": "0x51c8",20"output": "0x0000000000000000000000000000000000000000000000000000000000000001"21},22"subtraces": 1,23"traceAddress": [],24"type": "call"25},26{27"action": {28"from": "0xdac17f958d2ee523a2206206994597c13d831ec7",29"callType": "call",30"gas": "0x73e5f",31"input": "0x",32"to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567",33"value": "0x0"34},35"result": {36"gasUsed": "0x0",37"output": "0x"38},39"subtraces": 0,40"traceAddress": [41042],43"type": "call"44}45],46"vmTrace": {47"code": "0x608060405260043610610087577c01000000000000000000000000000000000000000000000000000000006000350463095ea7b3811461008c57806318160ddd146100d...",48"ops": [49{50"cost": 3,51"ex": {52"mem": null,53"push": [54"0x60"55],56"store": null,57"used": 1675619958},59"pc": 0,60"sub": null61},62{63"cost": 3,64"ex": {65"mem": null,66"push": [67"0x40"68],69"store": null,70"used": 1675619671},72"pc": 2,73"sub": null74}75]76}77}78]79}
1{2"jsonrpc": "2.0",3"id": 1,4"result": [5{6"output": "0x",7"stateDiff": null,8"trace": [9{10"action": {11"from": "0x627306090abab3a6e1400e9345bc60c78a8bef57",12"callType": "call",13"gas": "0x7a120",14"input": "0xa9059cbb000000000000000000000000d46e8dd67c5d32be8058bb8eb970870f0724456700000000000000000000000000000000000000000000000000de0b6b3a7640000",15"to": "0xdac17f958d2ee523a2206206994597c13d831ec7",16"value": "0x0"17},18"result": {19"gasUsed": "0x51c8",20"output": "0x0000000000000000000000000000000000000000000000000000000000000001"21},22"subtraces": 1,23"traceAddress": [],24"type": "call"25},26{27"action": {28"from": "0xdac17f958d2ee523a2206206994597c13d831ec7",29"callType": "call",30"gas": "0x73e5f",31"input": "0x",32"to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567",33"value": "0x0"34},35"result": {36"gasUsed": "0x0",37"output": "0x"38},39"subtraces": 0,40"traceAddress": [41042],43"type": "call"44}45],46"vmTrace": {47"code": "0x608060405260043610610087577c01000000000000000000000000000000000000000000000000000000006000350463095ea7b3811461008c57806318160ddd146100d...",48"ops": [49{50"cost": 3,51"ex": {52"mem": null,53"push": [54"0x60"55],56"store": null,57"used": 1675619958},59"pc": 0,60"sub": null61},62{63"cost": 3,64"ex": {65"mem": null,66"push": [67"0x40"68],69"store": null,70"used": 1675619671},72"pc": 2,73"sub": null74}75]76}77}78]79}