I am trying to build a transactional system that:
- Generates a new address for each customer.
- Waits for the confirmed balance on the address to reach a certain value.
- Launches a function once the balance condition is met.
I am currently using a while loop with polling to accomplish this, but it will not scale up properly for my intended use case.
Is there a way to register some kind of callback when a transaction is received to one of my wallet addresses and get rid of polling ?
Thank you all