Returns the information about a transaction requested by transaction hash. In the response object, blockHash, blockNumber, and transactionIndex are null when the transaction is pending.

Parameters

Params - a string array containing (required):

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

Returns

Object - a transaction object, or null when no transaction 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.
  • gas(hex string). QUANTITY - gas provided by the sender.
  • gasPrice(hex string). QUANTITY - gas price provided by the sender in wei.
  • hash(hex string). DATA, 32 Bytes - hash of the transaction.
  • input(hex string). DATA - the data send along with the transaction.
  • nonce(hex string). QUANTITY - the number of transactions made by the sender prior to this one.
  • to(hex string). DATA, 20 Bytes - address of the receiver. null when it's a contract creation transaction.
  • transactionIndex(hex string). QUANTITY - integer of the transactions index position in the block. null when it's pending.
  • value(hex string). QUANTITY - value transferred in wei.
  • v(hex string). QUANTITY - ECDSA recovery id.
  • r(hex string). DATA, 32 Bytes - ECDSA signature r.
  • s(hex string). DATA, 32 Bytes - ECDSA signature s.
Language
Click Try It! to start a request and see the response here!