Real-time notification for any activity relating to any FVM smart contract, actor or FVM wallet; just let the bot know which address you wanna track!
This project is a telegram bot which can track any activity(transaction) related to any FVM smart contract, FVM actor or FVM wallet. The user just needs to reply with the address and the bot will ping them anytime there is any activity related to that address! Tracking multiple addresses is supported as well.
The bot can work with:
Also, if the user wants to stop tracking any address, they just need to type: remove <address> e.g. remove t410fjlkt2molcbgpl53cf4npr3ijypfjqbjdnzjcl3a
The tool is easy to use. It provides real-time updates/notifications of any FVM smart contract, actor or FVM wallet on your telegram. DAO could find immense use of this tool to:
This project uses the Telegram API, a nodejs api server and a python cron job running every 5 secs. Api server is responsible for hosting the telegram bot and managing the users list in a postgres DB. Python cron keeps on polling glif api to get the transaction history of any address.
When a user direct-messages any address to the bot, the api server stores the userId and the address in the DB. It also, with the help of the python cron, updates how many transactions have happened for that address into the same record. When a new transaction comes related to that address, the python cron job catches this new transaction and initiates a message to the user informing them about this new 'activity'. It also updates transaction count in the DB.
When the user wishes to remove tracking for an address, there is a certain format 'remove <address>'. Api server parses the address and concludes the intention that the user no more wants to track that address. It deletes that particular record from the DB. Now, the python cron could not pick it up as it iterates over the records in the db and then makes API calls to glif api to fetch transactions and compare the difference.