Returns traces created at a given block.

Parameters

Params - a string array containing (required):
QUANTITY|TAG(hex string|string, required) - integer block number in hex string format, or the string "latest", "earliest" or "pending", see the default block parameter

Returns

Array - array of block traces objects.

  • blockHash(hex string). DATA, 32 Bytes - hash of the block.
  • blockNumber(hex string). QUANTITY - the block number.
  • transactionHash(hex string). DATA, 32 Bytes - hash of the transactions.
  • action(object). DATA, 32 Bytes - hash of the transactions
    • callType(string). type of method, such as "call", "delegatecall".
    • from(hex string). DATA, 20 Bytes - address of the sender.
    • to(hex string). DATA, 20 Bytes - address of the receiver. null when it's a contract creation transaction.
    • gas(hex string). QUANTITY - the amount of gas used by transaction.
    • input(hex string). DATA - the data send along with the transaction.
    • value(hex string). QUANTITY - value transferred in wei.
  • result(object). DATA - transaction result.
    • gasUsed(hex string). QUANTITY - the amount of gas used by transaction.
    • output(hex string). DATA - return value of the contract call. Contains only the actual value sent by a RETURN operation. If a RETURN was not executed, the output is empty bytes.
  • subTraces(hex string). - traces of contract calls made by the transaction.
  • traceAddress(Array). - tree list address of where the call occurred, address of the parents, and order of the current sub call.
  • type(string). - type of method, such as call or create.
Language
Click Try It! to start a request and see the response here!