trace_replayBlockTransactions
Replays all transactions in a block returning the requested traces for each transaction.
This method will use 80 Compute Units.
Parameters
blockNumber - String - Required - The block number as a string in hexadecimal format or tags. The supported tag values include:
earliest- For the earliest/genesis blocklatestfor the latest mined blocksafefor the most recent secure blockfinalizedfor the most recent secure block accepted by more than 2/3 of validators
array - array - Required - 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 subcallstrace- string - To get the basic trace of the given transactionstateDiff- string - To get information on altered Ethereum state due to execution of the given transaction
Returns
array - array - The block traces, which have the following fields
output- string - The data returned as output encoded in hexadecimal formatstateDiff- object - The altered state due to execution of the given transaction, or null if not availabletrace- array - An array of basic trace objects for the given transaction containing:action- object The ParityTrace action object containing call detailsfrom- string - The address of the sendercallType- string - The type of method such as call, staticcall, delegatecallgas- string - The gas provided by the sender, encoded as hexadecimalinput- string - The input data sent along with the transactionto- string - The address of the receivervalue- string - The integer of the value sent with this transaction, encoded as hexadecimal
result- object - The execution result of the tracegasUsed- string - The amount of gas used by this traceoutput- string - The return value of the contract call, empty if no RETURN executed
subtraces- integer - The number of subtraces (internal calls) within this tracetraceAddress- array - The list of addresses where the call executed, including parent calls and ordertype- string The type of the trace, such as call or create
vmTrace- object - The full trace of the virtual machine's state during execution, including sub-calls, or null if not availabletransactionHash- string - The transaction hash
Last updated
Was this helpful?