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 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
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
π Example Alerts: π¨ "Price Alert: ETH/USDC moved from $3,000 to $3,180 (+6%)" π "Volume Alert: ETH/USDC 24h volume: $1.5M"
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. π
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. π