Waiting for an Ethereum Transaction to Complete in plain JavaScript
Give users feedback on transactions.

Giving users feedback is important. Especially when the user might not be familiar with the actions they’re doing. Like sending transactions over the blockchain using MetaMask.
That’s why it’s useful to know how we can take a transaction hash and update our states to reflect the state of…