Get all transaction receipts of a given block on Ethereum.

Parameters

Params - a string array containing (required):

  • QUANTITY|TAG(hex string|string, required) - integer block number in hex string format, or one of "latest", "earliest" or "pending", see the default block parameter.

Returns

Array - array of objects, or null when no block was found:

  • blockHash(hex string). DATA, 32 Bytes - hash of the block where this transaction was in. null when it's pending.
  • blockNumber(hex string). QUANTITY - block number where this transaction was in. null when it's pending.
  • 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.
  • transactionHash(hex string). DATA, 32 Bytes - hash of the transaction.
  • transactionIndex(hex string). QUANTITY - integer of the transactions index position in the block. null when it's pending.
  • cumulativeGasUsed(hex string). QUANTITY - the total amount of gas used when this transaction was executed in the block.
  • gasUsed(hex string). QUANTITY - the amount of gas used by this specific transaction alone.
  • contractAddress(hex string). DATA, 20 Bytes - the contract address created, if the transaction was a contract creation, otherwise null.
  • logs(array of logs objects). Array - array of log objects, which this transaction generated.
  • logsBloom(hex string). DATA, 256 Bytes - bloom filter for light clients to quickly retrieve related logs.
  • status(integer number). QUANTITY - either 1 (success) or 0 (failure).
Language
Click Try It! to start a request and see the response here!