Overview
WyteLabs is a self-hosted Python backend for an AI-powered Solana wallet management chatbot. It provides intelligent assistance for wallet analysis, token swaps, liquidity pool monitoring, transaction tracking, and airdrop discovery.
Features
AI Chat Interface
Powered by OpenAI with Grok fallback for natural language interactions
Wallet Analysis
Deep dive into wallet holdings, token balances, and transaction history
Token Swaps
Get quotes and execute swaps via Jupiter DEX aggregator
Transaction Monitoring
Real-time tracking of wallet transactions and airdrop eligibility
Prerequisites
- Python 3.11+
- PostgreSQL 15+
- OpenAI API Key
- Grok API Key (optional, but recommended)
- Helius API Key (optional, for enhanced Solana data)
Installation
1. Clone the repository
git clone https://github.com/WYTELABS/wytelabs-backend
cd wytelabs-backend2. Create environment file
cp .env.example .env3. Configure environment variables
OPENAI_API_KEY=sk-your-key
GROK_API_KEY=your-grok-key
DATABASE_URL=postgresql://user:password@localhost:5432/wytelabs_db4. Install dependencies
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install -r requirements.txt5. Start the server
uvicorn main:app --host 0.0.0.0 --port 8000 --reloadThe API will be available at http://localhost:8000
API Documentation
Once running, visit the interactive API documentation:
- Swagger UI:
http://localhost:8000/docs - ReDoc:
http://localhost:8000/redoc
Example Endpoints
Create Chat Session
POST /api/chat/sessions
{
"title": "Wallet Analysis",
"wallet_address": "9B5X4b..."
}Add Wallet
POST /api/wallet/add
{
"address": "9B5X4b...",
"label": "My Main Wallet",
"is_primary": true
}Get Swap Quote
POST /api/swap/quote
{
"input_mint": "So11111...",
"output_mint": "EPjFWdd...",
"amount": 1.0,
"slippage": 0.5
}Ready to Get Started?
Clone the repository and start building your AI-powered Solana wallet today
Clone Repository