eth_getTransactionReceipt
Returns transaction receipt by transaction hash
web3.eth.getTransactionReceipt(hash [, callback])Parameters
The transaction hash.
(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:TRUEif the transaction was successful,FALSEif 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.nullwhen it’s a contract creation transaction.
contractAddress: The contract address created, if the transaction was a contract creation, otherwisenull.
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