hmy_getTransactionByHash
GetTransaction
Get a transaction by its hash.
API v1
Parameters
String
- The transaction hash.
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
String
- The transaction hash.
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