I have a situation where I create one address per user through GetNewAddress(User.Id)
So, in the end, I have a lot of addresses to monitor, to see if any user has deposited money.
I can do something like this:
foreach (var User in Users)
{
var T = GetReceivedByAccount(User.Id);
.. do something if money arrived
}
Wait 30 seconds and repeat...
But I'm guessing it's not the most efficient.
Is there a better way to do this?
Or can I get all transactions within a specific range in the wallet and then parse them by account?
Sorry if the question seems basic, I'm extremely new to this.. got some code running for the first time something like 16 hours ago :)