In ethers.js is there any way I can check whether a hash is mined and confirmed so that I know it is not reverted and valid?
[Ethereum] How to know a hash mined and confirmed by ethers.js
ethers.js
ethers.js
In ethers.js is there any way I can check whether a hash is mined and confirmed so that I know it is not reverted and valid?
Best Answer
In order to know whether a transaction (transactionHash) has been mined and confirmed, the following steps are required:
Below is the code snippet for achieving this:
In this way you can check whether the transaction has been mined.