trace_block
Returns traces created at given block.
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
Returns
array - The block traces, which have the following fields (all return types are hexadecimal unless otherwise noted):
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
blockHash- string - The hash of the block where this transaction was inblockNumber- integer - The block number where this transaction was inresult- object - The ParityTrace result object containing execution outcomegasUsed- string -The amount of gas used by this specific transactionoutput- string - The return value of the contract call, empty if no RETURN executed
subtraces- integer - The number of subtraces (internal calls) made by the transactiontraceAddress- array - The list of addresses where the call executed, including parent addresses and call ordertransactionHash- string - The hash of the transactiontransactionPosition- integer - The transaction index position within the blocktype- string - The type of the trace, such as call or createerror- string - The error message, if any
Last updated
Was this helpful?