Environment
Rinkeby
Details
I want ot monitor an address to see if the balance of a token goes below a certain amount. there isnt much documentation as to how to do this? where can i get nmore examples??
Code to reproduce
N/A
Environment
Rinkeby
Details
I want ot monitor an address to see if the balance of a token goes below a certain amount. there isnt much documentation as to how to do this? where can i get nmore examples??
Code to reproduce
N/A
Hi, welcome!
I think you can watch the event of this token, of course, if this token has a Transfer
event, once you get the event, you can check the token balance.
Or you can just write a timed tasks to check token balance, such as every 10 minutes to do this.
Exactly! You can also use Autotask Condition checks for this. What you want to do is more or less the following:
Transfer
event as a condition, and narrow it down by from == YOUR_ADDRESS
so you only look for transfers of funds out of your address.