Video thumbnail

Chain Chatters

AI Twitter agent for blockchain insights!, it fetches real-time NFT data, wallet stats, and DeFi trends via tweets. πŸŒπŸ€– Ask, and the blockchain answers. #Web3 #AI #Hackathon

Chain Chatters

Created At

Agentic Ethereum

Project Description

Chain Chatters is a Twitter-integrated AI agent that fact-checks ETH price claims and monitors significant market movements in real time. It helps traders, investors, and crypto enthusiasts stay informed by verifying Ethereum price claims and generating alerts for large price swings or trading volume spikes.

#Key Features & Functionality

  1. Fact-Checking ETH Price Claims πŸ”Ή When someone tweets a statement about Ethereum’s price (e.g., "ETH just hit $3,200!"), Chain Chatters automatically:

Extracts the claimed price from the tweet using regular expressions (regex). Fetches the actual ETH/USDC price from Uniswap V3’s The Graph subgraph API. Compares the two values and calculates the percentage difference. Returns a response stating whether the claim is accurate (within Β±5%) or inaccurate, along with the actual price. πŸ“Œ Example: πŸ’¬ User tweets: β€œETH just hit $3,500 πŸš€β€ πŸ€– Chain Chatters replies:

Fact Check: Price claimed: $3,500 Actual price: $3,420 ❌ Inaccurate (2.3% difference)

OR

Fact Check: Price claimed: $3,500 Actual price: $3,510 βœ… Accurate

  1. Monitoring ETH Market Movements Chain Chatters continuously tracks Ethereum’s price and trading volume on Uniswap and alerts users when notable changes occur. It checks for: βœ… Price swings greater than 5% – If ETH’s price moves up or down by more than 5% since the last check, it sends an alert. βœ… Large trading volume (> $1 million in 24 hours) – If the 24-hour trading volume exceeds $1 million, the bot notifies users.

πŸ“Œ Example Alerts: 🚨 "Price Alert: ETH/USDC moved from $3,000 to $3,180 (+6%)" πŸ“Š "Volume Alert: ETH/USDC 24h volume: $1.5M"

How It Works (Technical Flow)

1️⃣ Twitter Integration – Chain Chatters listens for tweets containing ETH price mentions. 2️⃣ Regex Extraction – It scans the tweet for any dollar-denoted price (e.g., $3200). 3️⃣ GraphQL Query to Uniswap V3 Subgraph – The bot fetches real-time ETH price and volume data. 4️⃣ Comparison Logic – If the claimed price is within Β±5% of the actual price, it's marked as accurate. Otherwise, it’s flagged as inaccurate. 5️⃣ Market Monitoring Interval – Every 2 minutes, Chain Chatters checks ETH’s price and volume to detect sudden market shifts. 6️⃣ Response Generation – It sends fact-checking responses or alerts on Twitter.

#Why This Project is Valuable πŸ“Œ Combatting Misinformation – Chain Chatters provides accurate, real-time price verification to prevent misleading claims on social media. πŸ“Œ Helping Traders Make Informed Decisions – Real-time price and volume alerts enable better decision-making. πŸ“Œ Decentralized Data Access – By leveraging The Graph (Uniswap V3 subgraph), the bot ensures transparency and trustless data retrieval.

#Potential Future Enhancements βœ… Multi-Exchange Support – Extend price checks beyond Uniswap to other major DEXs and CEXs. βœ… More Crypto Assets – Expand support for BTC, SOL, and other tokens. βœ… AI-Based Tweet Sentiment Analysis – Analyze tweets for market sentiment and detect FOMO/FUD trends. Also working on it βœ… Web & Telegram Integration – Allow price checks and alerts on other platforms beyond Twitter. βœ… Voice Integration

#Conclusion Chain Chatters is a real-time Ethereum price fact-checking and market monitoring bot that helps users separate hype from reality. By leveraging The Graph, Uniswap V3, and Twitter integration, it ensures accurate and transparent crypto market insights. πŸš€

How it's Made

Technologies Used: Node.js & TypeScript – Provides a scalable and type-safe runtime environment for building the bot. GraphQL & The Graph (Uniswap V3 Subgraph) – Enables efficient querying of real-time Ethereum price and market data. Regex Parsing – Extracts price claims from tweets dynamically. Twitter Integration – The bot listens for relevant tweets and responds with fact-checking data. Architecture & Implementation: Fetching Real-Time Data:

The bot queries Uniswap V3’s Subgraph API via GraphQL to get ETH/USDC price and 24-hour trading volume. The retrieved data includes token prices, trading volume, and token symbols. Fact-Checking Price Claims:

Uses regular expressions to extract price values from tweets. Compares the extracted price with real-time Uniswap data. If the difference is within Β±5%, the claim is marked accurate; otherwise, it is flagged as inaccurate. Market Monitoring & Alerts:

Runs periodic checks (every 2 minutes) to detect: Price spikes (>5%) High trading volume (> $1 million in 24h) Sends alerts when these conditions are met. Twitter Bot Integration:

Listens for tweets containing price claims and fact-checks them. Posts real-time alerts when significant market changes occur. Hacky & Notable Aspects: Optimized API Calls: Instead of polling Uniswap data constantly, the bot intelligently waits 2 minutes before making another request, reducing redundant API calls. Dynamic Price Parsing: The regex method is simple but effective, allowing the bot to detect price mentions in various tweet formats. Scalability: This architecture allows easy integration with more tokens, exchanges, and social platforms in the future. Overall, Chain Chatters is a lightweight, real-time monitoring tool that leverages blockchain indexing (The Graph) and social media engagement to provide instant, data-driven insights. πŸš€

background image mobile

Join the mailing list

Get the latest news and updates