Parameters
- blockNumberstringREQUIRED
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
- 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
- arrayarray
The block traces, which have 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 | null
(Conditional) State changes when requested; null otherwise.
- tracearray
It is used to retrieve the basic trace of the given information
- actionobject
The action to be performed on the receiver id
- fromstring
The address of the sender
- callTypestring
The type of method such as call, 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 integer of the value sent with this transaction, encoded as hexadecimal
- resultobject | null
The integer of the gas price used encoded as hexadecimal
- gasUsedstring
The total used gas by all transactions in this block encoded as hexadecimal
- 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 traces of contract calls made by the transaction
- traceAddressarray
The list of addresses where the call was executed, the address of the parents, and the order of the current sub call
- typestring
The value of the method such as call or create
- errorstring
(Conditional) Error message when execution fails.
- vmTraceobject | null
(Conditional) Virtual machine trace when requested; null otherwise.
- transactionHashstring
Hash of the transaction.
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": "0xfffffffffffffffffffffffffffffffffffffffe",13"callType": "call",14"gas": "0x1c96fc8",15"input": "0x092193ab000000000000000000000000514708beda3441cc4e141f8546c096eaab7c8a05",16"to": "0x0000000000000000000000000000000000002002",17"value": "0x3782dace9d900000"18},19"error": "Insufficient balance for transfer",20"result": null,21"subtraces": 0,22"traceAddress": []23}24],25"vmTrace": null,26"transactionHash": "0x5d005403489e1bc301344d2b51fa7f403372cf4e7941c2861aa320f1605c9dd4"27}28]29}
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": "0xfffffffffffffffffffffffffffffffffffffffe",13"callType": "call",14"gas": "0x1c96fc8",15"input": "0x092193ab000000000000000000000000514708beda3441cc4e141f8546c096eaab7c8a05",16"to": "0x0000000000000000000000000000000000002002",17"value": "0x3782dace9d900000"18},19"error": "Insufficient balance for transfer",20"result": null,21"subtraces": 0,22"traceAddress": []23}24],25"vmTrace": null,26"transactionHash": "0x5d005403489e1bc301344d2b51fa7f403372cf4e7941c2861aa320f1605c9dd4"27}28]29}