Coding task · Blockchain and Web3 course · Module 3: Ethereum & EVM

Monitoring a Transaction

Create a function that waits for transaction confirmation

Task

Implement waitForTransaction(txHash, confirmations) that waits for a specified number of confirmations