hmy_getTransactionByBlockNumberAndIndex

GetTransaction

Get transaction at an index from a given block, specified by number.

API v1

Parameters

  1. String - The block's index in the chain.

  2. String - The transactions index position.

Returns

  • hash - String: Hash of the transaction.

  • nonce - Number: The number of transactions made by the sender prior to this one.

  • blockHash - String: Hash of the block where this transaction was in. null when its pending.

  • blockNumber - Number: Block number where this transaction was in. null when its pending.

  • transactionIndex - Number: Integer of the transactions index position in the block. null when its pending.

  • from - String: Address of the sender.

  • to - String: Address of the receiver. null when its a contract creation transaction.

  • value - String: Value transferred in ATTO.

  • gasPrice - String: Gas price provided by the sender.

  • gas - Number: Gas provided by the sender.

  • input - String: The data sent along with the transaction.

Sample Curl Request

Sample Curl Response

API v2

Parameters

  1. Number- The block's index in the chain.

  2. Number - The transactions index position.

Returns

  • hash - String: Hash of the transaction.

  • nonce - Number: The number of transactions made by the sender prior to this one.

  • blockHash - String: Hash of the block where this transaction was in. null when its pending.

  • blockNumber - Number: Block number where this transaction was in. null when its pending.

  • transactionIndex - Number: Integer of the transactions index position in the block. null when its pending.

  • from - String: Address of the sender.

  • to - String: Address of the receiver. null when its a contract creation transaction.

  • value - Number: Value transferred in ATTO.

  • gasPrice - Number: Gas price provided by the sender.

  • gas - Number: Gas provided by the sender.

  • input - String: The data sent along with the transaction.

Sample Curl Request

Sample Curl Response

Last updated

Was this helpful?