Menu

1 / 5

wallet-alert-bot: Telegram and Discord alerts for Solana wallets

DEV Community: typescript·Abdeldjalil Chougui·about 21 hours ago
#GzN4uCBh
#devtotypescript#devto#dev#wallet#websocket
Reading 0:00
15s threshold

Some wallets are worth watching: a project treasury, a payout wallet, the account that receives customer payments on a test deployment. You want to know when tokens arrive or leave, without keeping an explorer tab open and refreshing it.

The first version of such a watcher is short. Open a websocket, subscribe to the wallet, print what comes in. Then the real problems appear. The socket drops and nobody notices. A notification is missed during a reconnect. The same transaction arrives twice. Every vote or dust transfer triggers a message until people mute the channel. And the chat API answers 429 when several alerts go out at once.

wallet-alert-bot is a small bot that handles those cases. It watches Solana wallets and posts an alert to Telegram, Discord, or both, when something relevant happens.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.