hmy_getTransactionReceipt
GetTransactionReceipt
Get transaction receipt from transaction hash.
API v1
Parameters
String- The transaction hash.
Returns
blockHash32 Bytes -String: Hash of the block where this transaction was in.blockNumber-Number: Block number where this transaction was in.transactionHash32 Bytes -String: Hash of the transaction.transactionIndex-Number: Integer of the transactions index position in the block.from-String: Address of the sender.to-String: Address of the receiver.nullwhen its a contract creation transaction.contractAddress-String: The contract address created, if the transaction was a contract creation, otherwisenull.cumulativeGasUsed-Number: The total amount of gas used when this transaction was executed in the block.gasUsed-Number: The amount of gas used by this specific transaction alone.logs-Array: Array of log objects, which this transaction generated.
Sample Curl Request
Sample Curl Response
API v2
Parameters
String- The transaction hash.
Returns
blockHash32 Bytes -String: Hash of the block where this transaction was in.blockNumber-Number: Block number where this transaction was in.transactionHash32 Bytes -String: Hash of the transaction.transactionIndex-Number: Integer of the transactions index position in the block.from-String: Address of the sender.to-String: Address of the receiver.nullwhen its a contract creation transaction.contractAddress-String: The contract address created, if the transaction was a contract creation, otherwisenull.cumulativeGasUsed-Number: The total amount of gas used when this transaction was executed in the block.gasUsed-Number: The amount of gas used by this specific transaction alone.logs-Array: Array of log objects, which this transaction generated.
Sample Curl Request
Sample Curl Response
Last updated
Was this helpful?