Welcome to SolanaGuideBot! A Telegram bot that interacts with the Solana Devnet blockchain. This bot allows users to check their Solana balance, view recent transactions, and receive free SOL on the Devnet.
- /balance - Check the SOL balance of any wallet address.
- /history - View the recent transactions of a wallet address.
- /airdrop - Receive free SOL on the Devnet for testing (1 SOL).
Watch the demo of how the bot works : SolanaGuideBot Demo
- Node.js - JavaScript runtime environment.
- Telegraf - Telegram bot framework.
- Solana Web3.js - Solana blockchain JavaScript SDK.
To run this bot, you’ll need:
- Node.js installed on your machine (Download from nodejs.org).
- A Telegram bot token. To create one, visit BotFather on Telegram.
-
Clone the repository:
git clone https://github.com/nishantcoder108/solanaguidebot.git cd solanaguidebot -
Install dependencies:
npm install
-
Create a
.envfile in the root directory and add your Telegram bot token and Solana RPC URL:TELEGRAM_BOT_TOKEN=your-telegram-bot-token SOLANA_RPC_URL=your-rpc-url
-
Run the bot:
npm run dev
The bot should now be running, and you can interact with it on Telegram!
Here are the available commands you can use with the bot:
-
/balance
<address>
Check the balance of a Solana wallet.Example:
/balance 4z9r5XXwrVKN5KJ111yFAd2gHChdcYpmtGpmVbeUjpZj -
/history
<address>
View recent transactions for a Solana wallet.Example:
/history 4z9r5XXwrVKN5KJ4125FAd2gHChdcYpmtGpmVbeUjpZj -
/airdrop
<address>
Get 1 SOL for free (Devnet only) to test the bot’s features.Example:
/airdrop 4z9r5XXwrVKN5KJ896yFAd2gHChdcYpmtGpmVbeUjpZj