Solana Bonk Bot
Solana wallet interactions through a Telegram bot.
Overview
This Telegram-based Solana wallet bot brings wallet creation, address lookup, balance checks, and SOL transfers into a chat workflow. It is built with TypeScript, Node.js, the Telegram API, and @solana/web3.js.
Architecture
Scroll to explore the connections, or use Fit to see the full diagram.
An in-memory wallet bot connected to Solana RPC
- Telegraf handles commands and callback menus. Generated wallet keypairs and pending conversation state remain in process memory.
- A SOL send collects recipient and amount, checks the balance and fee, builds a SystemProgram transfer, and signs with the stored keypair.
- sendAndConfirmTransaction submits through the configured RPC and the bot returns the signature. Token-transfer menu functionality is not implemented in this repository.
Component responsibilities
Telegram conversation
Telegraf handles wallet commands, callback menus, and multi-step recipient/amount collection.
In-memory wallet state
Generated keypairs and pending requests live in process memory. Durable encrypted wallet persistence is not implemented.
SOL transaction path
The bot builds a SystemProgram transfer and uses sendAndConfirmTransaction with the stored keypair through a configured RPC, defaulting to devnet.
Why I built this
I wanted to understand how Solana wallet operations could be exposed through a conversational interface. A Telegram bot made it possible to explore those interactions outside a traditional web application.
Use case
A user can interact with the bot in Telegram to create a wallet, view an address, check a balance, and use the SOL transfer workflow.
What I learned
- Connecting Telegram commands to a TypeScript and Node.js application.
- Using @solana/web3.js for wallet information and transfer operations.
- Designing a command-driven interface for a sequence of wallet actions.
Key features
Wallet creation
Create a Solana wallet through the bot's Telegram workflow.
Wallet information
View a wallet address and check its SOL balance.
SOL transfers
Use the bot's transfer workflow to send SOL.


