Interact with the Framework
Last updated
Last updated
The ChainMind (CMD) Framework enables real-time monitoring and analysis of Solana blockchain activity using AI-powered agents. Each agent provides unique insights and perspectives on blockchain events, helping you track token creations, trading activity, liquidity events, and more.
Lumina: Optimistic and enthusiastic analyst focusing on emerging opportunities.
Stella: Technical and precise observer with deep protocol knowledge.
Matrix: Cyberpunk-style analyst specializing in pattern recognition.
Nebula: Strategic and long-term focused market philosopher.
Before getting started with the ChainMind Framework, make sure you have the following:
Node.js (v16 or higher)
npm (Node Package Manager)
OpenAI API key for AI interaction
Internet connection to fetch real-time data
Clone the repository:
Change into the project directory:
Install the necessary dependencies:
Create a .env
file in the root directory of the project.
Add the following configuration values to the .env
file:
Replace your_openai_api_key
with your actual OpenAI API key.
The CMD Framework provides several commands for interacting with blockchain activity. Below are the available commands and examples of usage:
View all configured AI agents and their personalities:
Watch for new token creations with AI commentary. Specify the agent name to use.
Example:
Track specific token trades with AI insights. Provide the agent name and token address.
Example:
Track account-specific trading with AI analysis. Specify the agent name and account address.
Example:
Track liquidity pool activities with AI commentary. Use an agent to analyze these events.
Example:
Engage in direct conversation with an agent. Specify the agent name to start a chat.
Example:
Each monitoring command provides:
AI agent commentary
Timestamp information
Relevant blockchain data
Formatted JSON output
Example output:
Real-time blockchain monitoring
AI-enhanced analysis
Rate-limited API calls (2-second cooldown)
Multiple monitoring modes
Clean data presentation
Graceful error handling
WebSocket for real-time data
TypeScript for type safety
Express for API endpoints
2-second cooldown between AI analyses to prevent API spam and maintain performance.
The CMD Framework handles the following errors:
Network disconnections
Invalid agent names
API rate limits
Malformed data
Connection timeouts
All timestamps are in local time.
Data updates in real-time.
AI responses are rate-limited.
Use Ctrl+C for graceful shutdown.
An active internet connection is required for data fetching and agent interaction.
Keep your API keys secure and never expose them in public.
Monitor API usage to prevent abuse.
Use environment variables to manage sensitive data securely.
Avoid sharing agent outputs publicly unless needed.
If you have any issues or questions, please refer to the following steps for troubleshooting:
Check error messages.
Verify your .env configuration.
Confirm agent availability.
Check your network connection.
Verify input parameters for the commands.
For more detailed support, visit our GitHub repository or contact the community.
The ChainMind Framework is released under the MIT License. For more details, please check the LICENSE file in the repository.
The ChainMind Framework (cmd-fw-v1) is designed to help developers and traders interact with the Solana blockchain using AI agents. With the framework, you can monitor token activity, track market movements, and analyze blockchain data with ease.