hmy_getTransactionByBlockHashAndIndex
GetTransactionByBlockHashAndIndex
Get transaction at an index from a given block, specified by block hash.
API v1
Parameters
String- The block hash.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.nullwhen its pending.blockNumber-Number: Block number where this transaction was in.nullwhen its pending.transactionIndex-Number: Integer of the transactions index position in the block.nullwhen its pending.from-String: Address of the sender.to-String: Address of the receiver.nullwhen 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
String- The block hash.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.nullwhen its pending.blockNumber-Number: Block number where this transaction was in.nullwhen its pending.transactionIndex-Number: Integer of the transactions index position in the block.nullwhen its pending.from-String: Address of the sender.to-String: Address of the receiver.nullwhen 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?