https://github.com/nishantcoder108/telegram-bot
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.
https://github.com/nishantcoder108/telegram-bot
nodejs solana telegraf telegram typescript web3js
Last synced: 3 months ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/nishantcoder108/telegram-bot
- Owner: NishantCoder108
- Created: 2024-12-10T00:57:15.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-12-10T01:32:30.000Z (7 months ago)
- Last Synced: 2025-03-25T20:33:38.992Z (3 months ago)
- Topics: nodejs, solana, telegraf, telegram, typescript, web3js
- Language: TypeScript
- Homepage:
- Size: 31.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# SolanaGuideBot
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.
## Features
** - Check the SOL balance of any wallet address.
- **/balance
- **/history ** - View the recent transactions of a wallet address.
- **/airdrop ** - Receive free SOL on the Devnet for testing (1 SOL).## Demo:
Watch the demo of how the bot works : [SolanaGuideBot Demo](https://youtu.be/TMMseOdhJGw)## Technologies Used
- **Node.js** - JavaScript runtime environment.
- **Telegraf** - Telegram bot framework.
- **Solana Web3.js** - Solana blockchain JavaScript SDK.## Getting Started
### Prerequisites
To run this bot, you’ll need:
- **Node.js** installed on your machine (Download from [nodejs.org](https://nodejs.org/)).
- A Telegram bot token. To create one, visit [BotFather](https://core.telegram.org/bots#botfather) on Telegram.### Installation
1. Clone the repository:
```bash
git clone https://github.com/nishantcoder108/solanaguidebot.git
cd solanaguidebot
```2. Install dependencies:
```bash
npm install
```3. Create a `.env` file in the root directory and add your Telegram bot token and Solana RPC URL:
```bash
TELEGRAM_BOT_TOKEN=your-telegram-bot-token
SOLANA_RPC_URL=your-rpc-url
```4. Run the bot:
```bash
npm run dev
```The bot should now be running, and you can interact with it on Telegram!
## Commands
Here are the available commands you can use with the bot:1. **/balance `
`**
Check the balance of a Solana wallet.Example:
`/balance 4z9r5XXwrVKN5KJ111yFAd2gHChdcYpmtGpmVbeUjpZj`2. **/history `
`**
View recent transactions for a Solana wallet.Example:
`/history 4z9r5XXwrVKN5KJ4125FAd2gHChdcYpmtGpmVbeUjpZj`3. **/airdrop `
`**
Get 1 SOL for free (Devnet only) to test the bot’s features.Example:
`/airdrop 4z9r5XXwrVKN5KJ896yFAd2gHChdcYpmtGpmVbeUjpZj`