BlockchainSolanaSniper: Features & Functionality

1. Overview

The BlockchainSolanaSniper is an automated trading bot designed to operate on the Solana network. It integrates with Telegram to monitor user-specified channels for new token announcements. When a valid Solana token address is detected, the bot automatically executes a buy order and then manages the position based on the user's pre-configured strategy, aiming to secure profits from rapid price movements.

The entire system is built on a robust process-based architecture, ensuring each user's instance runs in a secure, isolated environment. All trading and price discovery is powered by the Jupiter (Jup.ag) API, guaranteeing the best possible swap rates across the Solana ecosystem.

2. Core Features

  • Telegram Signal Detection: Monitors multiple public or private Telegram channels simultaneously for Solana token addresses.
  • High-Speed Automated Trading: Executes buy and sell orders automatically, faster than manual trading.
  • Advanced Trading Modes: Offers multiple configurable strategies for selling, from simple profit targets to complex trailing stop losses.
  • Real-Time Price Monitoring: Continuously tracks the value of purchased assets using Jupiter's real-time price feeds.
  • Full In-Bot Configuration: All settings can be managed directly through an intuitive Telegram bot interface.
  • Manual Override: Provides commands to manually sell assets at any time.
  • Secure & Isolated: Each user's sniper runs as a separate, dedicated process on the server.

3. The Sniping Process: How It Works

The bot follows a clear, automated workflow from signal detection to profit-taking.

  1. Configuration: The user sets up the bot via the Telegram menu, defining which channels to monitor, wallet settings, and their desired buy/sell strategy.
  2. Listen: The bot connects to the Telegram API and begins listening for new messages in the designated channels.
  3. Detect: A sophisticated regex scanner identifies valid Solana (Base58) token addresses within messages.
  4. Verify: The bot performs pre-flight checks on the token address. (Note: Current checks are basic, with more robust safety features planned).
  5. Buy: If the token is deemed buyable, the bot uses the Jupiter API to execute a swap, buying the token with the user's specified amount of SOL.
  6. Monitor: The newly acquired token is added to a cache. The bot then monitors its price in real-time.
  7. Sell: Based on the user's selected trading mode, the bot automatically triggers a sell order when the conditions are met (e.g., profit target hit, stop loss triggered).

4. Trading Modes

The BlockchainSolanaSniper offers four distinct trading modes to suit different strategies:

  • Basic Autosell: The simplest mode. Set a profit target (e.g., 2x) and a stop-loss (e.g., 0.5x). The bot will sell automatically when either target is reached.
  • Sell After Time Delay: For strategies based on time rather than price. The bot will sell the token after a user-defined number of seconds have passed since the buy.
  • Trailing Stop Loss: The most advanced mode for maximizing gains. The bot "trails" the token's price as it rises. It only sells after the price has dropped by a certain multiplier from its highest recorded peak.
  • Manual Selling: The bot will buy the token but will never sell it automatically. This mode gives the user full control to monitor the token and use the manual sell commands when they see fit.

5. Configuration Settings

All settings are managed via the Telegram bot's menu (`/settings`).

Menu Setting Description
General `Buy Tokens` Master switch to enable or disable all buying functionality.
`Sell Tokens` Master switch to enable or disable all automatic selling functionality.
`Max Snipes` Set a limit on the total number of snipes the bot will perform (`-1` for unlimited).
Telegram `API ID / Hash` User's personal Telegram API credentials for connecting the listener.
`Channels` Add or remove the list of Telegram channels the bot should monitor for signals.
Wallet `Wallet Seed Phrase` The user's 12 or 24-word Solana seed phrase.
`Wallet Index` Select which derived address from the seed phrase to use for trading (e.g., 0, 1, 2...).
Buy Settings `Buy Amount` The amount of SOL to use for each individual buy/snipe.
Sell Settings `Trading Mode` Select one of the four trading modes described above.
`(Mode Specific)` Configure the parameters for the selected mode (e.g., multipliers, time delay, trail amount).
Gas Settings `Priority Fee` The additional fee (in micro-lamports) to add to transactions to increase their processing speed.
`Compute Unit Limit` The maximum number of compute units a transaction can consume.
Node Settings `Custom Node URL` Optionally provide a custom Solana RPC node URL to use instead of the bot's default node.

6. Manual Controls

Even in automated modes, the user can take control with these commands:

  • /sell <ID> [percentage]: Sells a percentage of a specific token from the active trade list. (e.g., /sell 1 50 sells 50% of token ID 1).
  • /sell all [percentage]: Sells a percentage of all currently held tokens.
  • /sell <ID1>,<ID2> [percentage]: Sells a percentage of multiple specific tokens.
  • /sell {tokenAddress}: Sells a token directly by its contract address. This is useful for selling tokens held in the wallet that were not bought by the bot.

7. Technical Foundation

  • Trading API: Exclusively uses the Jupiter (Jup.ag) API for all swaps and price lookups. This ensures users get the best possible price by routing trades through the most liquid DEXs on Solana.
  • Blockchain SDK: Leverages the official @solana/web3.js library for all direct on-chain interactions like sending transactions and checking balances.