API Reference

Returns the receipt of a transaction by transaction hash.

Parameters

Params - a string array containing (required):

  • DATA(hex string, required), 32 Bytes - hash of a transaction

Returns

Object - a transaction receipt object, or null when no receipt was found:

  • transactionHash(hex string). DATA, 32 Bytes - hash of the transaction.
  • transactionIndex(hex string). QUANTITY - integer of the transactions index position in the block.
  • blockHash(hex string). DATA, 32 Bytes - hash of the block where this transaction was in.
  • blockNumber(hex string). QUANTITY - block number where this transaction was in.
  • 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.
  • 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.

It also returns either :

  • root(hex string). DATA, 32 bytes of post - transaction stateroot (pre Byzantium).
  • status(integer number). QUANTITY - either 1 (success) or 0 (failure).
Language
Click Try It! to start a request and see the response here!