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.…