Returns information about a transaction by block number and transaction index position.

Parameters

Params - a string array containing (required):

  • QUANTITY|TAG(hex string|string, required) - integer block number in hex string format, or the string "earliest", "latest" or "pending", as in the default block parameter.
  • QUANTITY(hex string, required) - the transaction index position.

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 its 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!