eth_getTransactionReceipt

Returns transaction receipt by transaction hash

web3.eth.getTransactionReceipt(hash [, callback])

Parameters

  1. The transaction hash.

  2. (optional) Optional callback, returns an error object as first parameter and the result as second.

Returns

A transaction receipt object, or null if no receipt was found:

  • status: TRUE if the transaction was successful, FALSE if the EVM reverted the transaction.

  • blockHash: Hash of the block where this transaction was in.

  • blockNumber: Block number where this transaction was in.

  • transactionHash: Hash of the transaction.

  • transactionIndex: Integer of the transactions index position in the block.

  • from: Address of the sender.

  • to: Address of the receiver. null when it’s a contract creation transaction.

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

  • cumulativeGasUsed: The total amount of gas used when this transaction was executed in the block.

  • gasUsed: The amount of gas used by this specific transaction alone.

  • logs: Array of log objects, which this transaction generated.

  • internalTransactions:

  • logsBloom:

Example

Last updated