Returns the receipt of a transaction by transaction hash.
This can also be used to get general information about a transaction or to track the status of a transaction, since result will be null until the transaction is mined, however, using the Mined Transaction Webhook is a better option to track the status of a transaction. Unlike
eth_getTransactionByHash, which returns
null for unknown transactions, and a non-null response with 3 null fields for a pending transaction,
eth_getTransactionReceipt returns null for both pending and unknown transactions.
This call can also be used to get the contract address for a contract creation tx. However, if you use tools like Hardhat to deploy the contracts, you can get the address of the newly created contract by using the Hardhat toolbox.
Use cases for
Note: the receipt is not available for pending transactions.
DATA, 32 Bytes - hash of a transaction
params: [ '0xab059a62e22e230fe0f56d8555340a29b2e9532360368f810595453f6fdd213b' ]