I'm building a webapp using
web3js. I have a simple use-case: I provide the user with an address to which he should deposit funds. I want to then listen on my
nodejs server for:
- when the user deposits funds to this address
- the transaction which deposits these funds has gone through 12 confirmations.
I know I can check the balance of the account using:
var balanceWei = web3.eth.getBalance(walletAddress).toNumber();
however this is not enough in my use case. I need to know when a transaction occurs which deposits funds into this account, as well as when this transaction is confirmed so that I can make these funds available to the user within my app.