hmy_getTransactionReceipt

GetTransactionReceipt

Get transaction receipt from transaction hash.

API v1

Parameters

  1. String - The transaction hash.

Returns

  • blockHash 32 Bytes - String: Hash of the block where this transaction was in.

  • blockNumber - Number: Block number where this transaction was in.

  • transactionHash 32 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. null when its a contract creation transaction.

  • contractAddress - String: The contract address created, if the transaction was a contract creation, otherwise null.

  • 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

  1. String - The transaction hash.

Returns

  • blockHash 32 Bytes - String: Hash of the block where this transaction was in.

  • blockNumber - Number: Block number where this transaction was in.

  • transactionHash 32 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. null when its a contract creation transaction.

  • contractAddress - String: The contract address created, if the transaction was a contract creation, otherwise null.

  • 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