Boring Technical Stuff
If you’re curious about what makes the $ALERTS platform tick, this section is for you. Here’s a deep dive into how we leverage data endpoints, web3 connections, and a variety of APIs.
1. Web3 Integrations & Solana RPC Connections
At the core of our bot's operation is the Solana RPC (Remote Procedure Call) network. This allows our backend to interact with the Solana blockchain directly by sending requests and receiving responses for real-time on-chain data.
Solana RPC Nodes
We use a distributed set of RPC nodes to maintain redundancy and high availability. This setup ensures that even during high network congestion or node downtimes, our system remains operational. Here's a breakdown of the process:
RPC Calls: The bot frequently sends JSON-RPC requests to various Solana nodes to fetch block, transaction, and account data.
Subscription Methods: We utilize WebSocket connections to subscribe to key events, such as new blocks, program logs (for DeFi events), and token transfers. This allows us to get near real-time updates on the blockchain without polling every few seconds.
Accounts Monitoring: For each token being tracked, the bot monitors the associated token program (SPL Token Standard) to listen for Mint events, Transfer events, and Burn events. This helps us capture significant movements like whale transactions or liquidity changes.
2. Data Sources: On-Chain and Off-Chain Indicators
The bot relies on a complex network of on-chain and off-chain data sources to generate high-quality token calls. Let’s break this down:
On-Chain Indicators
For Solana tokens, we monitor a wide array of on-chain activity that can indicate potential growth or unusual behavior. These include:
Token Transfers: We track the volume and frequency of token transfers, which can signal market demand or whale movement. Large transfers to known DEX addresses often indicate upcoming trading activity.
Liquidity Events: We monitor liquidity pools (e.g., Raydium, Orca, Serum) and detect sudden liquidity additions or removals. This is a key factor in determining market volatility and token stability.
Wallet Activity: Our bot can trace whale wallets (addresses holding large amounts of Solana or other tokens). Unusual activity, such as whales suddenly accumulating or selling off, triggers an alert.
Smart Contract Events: Through Solana’s BPF Program Logs, we parse contract events related to token staking, governance votes, or token burns. These events often have significant implications for a token’s value.
DEXScreener Adverts: When a token is boosted through DEXScreener Ads, it gains prominent placement on the platform’s listing pages. This creates increased exposure to a larger audience of traders, potentially driving higher trading volumes and positive price movements.
Off-Chain Indicators
While on-chain data is crucial, off-chain sentiment analysis adds an extra layer of predictive power:
Social Media Sentiment: We integrate with third-party APIs to scrape Twitter, Reddit, and Discord for mentions of specific tokens. Using Natural Language Processing (NLP), we gauge the overall sentiment and volume of discussion around a token. A sudden spike in positive mentions can signal incoming demand.
News Aggregation: Our bot is linked to crypto news aggregators via REST APIs. It scans for breaking news (like token listings, partnerships, or hack incidents) that could impact token price action.
Market Data: We pull data from popular price tracking services such as CoinGecko or CoinMarketCap, specifically focusing on price volatility, trading volumes, and market cap trends. This gives us a more holistic view of market dynamics.
3. Parsing and Filtering Data
Collecting raw data from these sources is only the first step. Our bot is equipped with an intelligent filtering and data processing engine that ensures we only send high-value, actionable alerts.
Event Parsing
Solana Program Logs are parsed to detect SPL token transfers and other token-related events in real-time. For example, each time a token is transferred, a ‘Transfer’ instruction is logged by the SPL Token program. Our bot extracts this log data, checks the token involved, and determines if it matches the ones we are tracking.
We also parse Swap and Liquidity Add/Remove events from decentralized exchanges (DEXs) like Raydium and Serum. These events often precede sharp price movements, so parsing them helps the bot detect when tokens are about to spike or drop.
Data Filtering
Not all events are created equal, and flooding users with too many alerts can lead to information overload. Therefore, our system uses the following filters:
Whale Thresholds: We filter out small-scale transactions by setting thresholds on the volume of tokens transferred or liquidity moved. This way, only large, market-moving events trigger alerts.
Time Windows: We monitor token activity over specific time windows (e.g., 1-hour, 24-hour, and 7-day windows) to spot significant trends rather than one-off spikes.
Anomaly Detection: The bot uses basic anomaly detection algorithms to identify unusual patterns in token transactions, such as a sudden influx of transfers to new wallets or abnormal liquidity fluctuations.
4. Telegram Bot API Integration
To ensure smooth user interaction, we integrate with Telegram’s Bot API. Here’s how we leverage Telegram’s functionality to deliver real-time alerts and other features:
Event Listeners & Webhooks
Telegram Webhooks are set up to handle messages and commands in real-time. Whenever a user interacts with the bot, the backend listens for these events and triggers appropriate responses.
The bot uses long-polling as a fallback in case webhook delivery fails, ensuring that no user command is missed.
Real-Time Alerting
Once the bot detects significant token events, it sends out custom alerts to users in our Telegram channel. These alerts are rich in details, including:
Token name and contract address
Transaction type (whale movement, liquidity change, suspicious activity)
Links to blockchain explorers (e.g., Solscan, Solana Beach) for more detailed analysis
Security and Privacy
All interactions between the bot, Telegram API, and users' wallets are conducted over SSL/TLS encrypted connections. We do not store user private keys or sensitive wallet information. Instead, we rely on Phantom Wallet’s transaction signing feature, meaning users sign transactions on their own devices, ensuring maximum security.
That’s the boring technical stuff (which we think is pretty exciting!). We’ve built $ALERTS with a mix of blockchain technology, data engineering, and machine learning, all seamlessly connected to deliver timely, relevant insights right to your Telegram. If you’re still reading, congratulations—you’ve got what it takes to truly appreciate the power behind the platform. And now, you’re one step closer to trading like a pro!
Last updated