Real-time, AI-powered analysis of high-value Ethereum transactions using the Swarms framework.
The Enterprise Ethereum Analysis Agent is a production-grade system that monitors and analyzes high-value Ethereum transactions in real-time. By combining Web3 technology with advanced AI capabilities through the Swarms framework, it provides institutional-grade insights into significant blockchain movements.
- Real-time Transaction Monitoring: Automated detection of transactions over 100 ETH
- AI-Powered Analysis: Instant, comprehensive analysis using GPT-4
- Market Context Integration: Real-time price data and USD value assessment
- Enterprise-grade Logging: Structured logging with rotation policies
- Persistent Storage: CSV-based transaction and analysis archival
- Contract Interaction Detection: Automatic identification of smart contract interactions
- Event Tracking: Comprehensive logging of contract events
- Market Impact Assessment: Real-time analysis of potential market effects
- Python 3.9+
- OpenAI API key
- Internet connection for blockchain and price data access
- Clone the repository:
git clone https://github.com/The-Swarm-Corporation/eth-agent.git
cd eth-agent
- Create and activate a virtual environment:
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
- Install required packages:
pip install -r requirements.txt
- Create a
.env
file in the project root:
OPENAI_API_KEY=your_api_key_here
Start the analysis system:
python eth_analyzer.py
The system will:
- Begin monitoring the Ethereum blockchain
- Detect transactions ≥ 100 ETH
- Perform AI analysis of each transaction
- Save results to
ethereum_analysis.csv
- Display real-time analysis in the console
Key parameters can be adjusted in eth_analyzer.py
:
analyzer = EthereumAnalyzer(
min_value_eth=100.0, # Minimum transaction value to track
)
The system generates two types of output:
- Console Output (Real-time):
===========================================
New Transaction Analysis
Hash: 0x123...
Value: 150.00 ETH ($300,000.00)
Current ETH Price: $2,000.00
===========================================
[AI Analysis Output]
===========================================
- CSV Output (Archived):
- timestamp
- transaction_hash
- from_address
- to_address
- value_eth
- value_usd
- eth_price
- gas_used
- gas_price_gwei
- block_number
- analysis
The system operates through several integrated components:
- Blockchain Monitor: Interfaces with Ethereum network
- Transaction Analyzer: Processes and filters transactions
- AI Analysis Engine: Generates insights via GPT-4
- Data Persistence: Manages CSV storage
- Logging System: Maintains operational logs
- Swarms: AI agent framework
- web3.py: Ethereum interaction
- loguru: Logging system
- requests: API interactions
- pandas: Data management
- python-dotenv: Environment management
For enterprise deployment assistance or custom feature development, contact:
- Website: swarms.ai
- Discord: Join Swarms Community
We welcome contributions! Please see our Contributing Guidelines for details.
This project is licensed under the MIT License - see the LICENSE file for details.
- Built with Swarms
- Uses OpenAI's GPT-4 for analysis
- Ethereum blockchain community
Please report security issues directly to [email protected]
Maintained by The Swarm Corporation