When executing an ethereum transaction using web3.js how can I be sure that the transaction has been executed successfully? On Rinkeby testnet sometimes I get an error
Transaction was not mined within 50 blocks, please make sure your transaction was properly send. Be aware that it might still be mined!
If my transaction can still be mined how can I make sure if the transaction is mined or not after getting an error in web3?