File size: 11,308 Bytes
fcffb8f d1b359f 981b1f0 d1b359f | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 | ---
title: Solana Key Generator & Live Miner
emoji: π
colorFrom: purple
colorTo: green
sdk: gradio
sdk_version: "4.44.0"
app_file: app.py
pinned: false
license: mit
---
# π Solana Key Generator & Live Miner
A comprehensive Solana wallet mining application that generates Ed25519 Base-58 keys and mines Solana addresses in real-time with advanced Discord notifications and multi-platform support.
## π Complete Feature Overview
### π² Single Key Generation
- **Secure Keypair Generation**: Creates cryptographically secure Ed25519 keypairs
- **Base58 Encoding**: Private keys encoded in standard Solana Base58 format
- **Multiple Format Support**: Provides both Base58 and hexadecimal representations
- **Key Validation**: Automatic validation of generated keypairs
- **Copy-to-Clipboard**: One-click copying for all generated keys
- **Key Information Display**: Shows key length, format validation, and technical details
### π¦ Bulk Key Generation
- **High-Volume Generation**: Generate up to 1,000 keys in a single batch
- **Progress Tracking**: Real-time progress updates for large batches
- **Error Handling**: Robust error recovery and reporting
- **Batch Export**: All keys provided in easy-to-copy format
- **Performance Optimized**: Efficient generation with CPU throttling prevention
- **Memory Management**: Optimized for large key batches without memory issues
### πͺ Advanced Wallet Mining System
#### βοΈ Core Mining Features
- **Real-Time Mining**: Continuous background mining with 100 wallets per batch
- **30-Minute Cycle Management**: Intelligent mining cycles (30 min active, 30 min break)
- **Multi-RPC Support**: Automatic failover between 4+ Solana RPC endpoints
- **Balance Detection**: Configurable minimum SOL threshold for "funded" wallets
- **Live Performance Metrics**: Real-time statistics and performance tracking
- **Auto-Recovery**: Automatic error recovery and RPC endpoint switching
#### π Comprehensive Statistics
- **Mining Performance**: Wallets per second, batch processing times
- **Success Tracking**: Total mined, funded wallets found, success rates
- **Streak Monitoring**: Current and best finding streaks
- **Uptime Tracking**: Total runtime and activity monitoring
- **RPC Performance**: Individual endpoint response time tracking
- **Error Analytics**: Comprehensive error counting and categorization
#### π Cycle Management
- **30-Minute Active Mining**: Intensive mining periods
- **30-Minute Break Periods**: Resource conservation and rate limit management
- **Cycle Progress Tracking**: Visual progress indicators for current cycle
- **Total Cycle Counting**: Historical cycle completion tracking
- **Automatic Transitions**: Seamless switching between mining and break modes
### π¬ Discord Integration System
#### π¨ Instant Notifications
- **Funded Wallet Alerts**: Immediate @everyone pings when funded wallets are discovered
- **Rich Embeds**: Detailed wallet information with private keys (spoiler tags)
- **Miner Identification**: Multi-miner support with unique IDs and names
- **Startup Notifications**: Automatic notifications when miners come online
- **Status Updates**: Regular mining status updates with comprehensive metrics
#### π Advanced Discord Features
- **Live Status Embeds**: Self-updating status messages every 60 seconds
- **Performance Metrics**: Detailed mining statistics in Discord
- **RPC Health Monitoring**: Network status and endpoint performance
- **Error Reporting**: Automatic error notifications and recovery status
- **Multi-Miner Support**: Support for multiple miners with unique identification
#### π‘οΈ Discord Reliability
- **Isolated Processing**: Discord operations never block mining operations
- **Retry Logic**: Automatic retry with exponential backoff
- **Rate Limit Handling**: Intelligent Discord API rate limit management
- **Fallback Systems**: Graceful degradation when Discord is unavailable
- **Queue Management**: Message queuing to prevent loss during outages
### π‘ Live Feed System
- **Real-Time Updates**: Continuous feed of mining activity
- **Funded Wallet Highlighting**: Special formatting for successful finds
- **Empty Wallet Sampling**: Representative sampling of checked wallets
- **Timestamp Tracking**: Precise timing information for all activities
- **Feed Management**: Automatic cleanup and size management
- **Color Coding**: Visual distinction between funded and empty wallets
### βοΈ Configuration & Customization
#### π§ Environment Variables
- `DISCORD_WEBHOOK`: Discord webhook URL for notifications
- `MIN_SOL`: Minimum SOL balance threshold (default: 0.00001)
- `RPC_BATCH_SIZE`: Wallets per RPC call (max: 100)
- `MINER_SLEEP`: Delay between mining cycles (default: 1.0s)
- `MINER_ID`: Unique miner identifier
- `MINER_NAME`: Human-readable miner name
- `MINER_LOCATION`: Geographic or logical location identifier
- `PORT`: Application port (auto-configured for platform)
#### π Multi-Platform Support
- **Replit Optimization**: Automatic port and host configuration for Replit
- **Hugging Face Spaces**: Full compatibility with HF Spaces environment
- **Local Development**: Complete local development support
- **Docker Ready**: Container deployment support
- **Cloud Platform**: AWS, Google Cloud, DigitalOcean compatibility
### π Performance & Reliability
#### β‘ Performance Features
- **Batch Processing**: Efficient 100-wallet batches for optimal RPC usage
- **Connection Pooling**: Persistent RPC connections with health monitoring
- **Memory Optimization**: Efficient memory usage even during extended mining
- **CPU Throttling**: Prevents system overload during intensive operations
- **Background Processing**: Non-blocking operations for all mining activities
#### π‘οΈ Reliability Systems
- **Error Recovery**: Automatic recovery from network and RPC failures
- **Health Monitoring**: Continuous system health and performance monitoring
- **Graceful Degradation**: Continues operation even when some features fail
- **State Management**: Persistent mining state across connection issues
- **Logging System**: Comprehensive logging for debugging and monitoring
### π¨ User Interface
#### π± Responsive Web Interface
- **Gradio Framework**: Modern, responsive web interface
- **Mobile Friendly**: Full functionality on mobile devices and tablets
- **Real-Time Updates**: Live statistics and feed updates
- **Copy Functions**: One-click copying for all generated content
- **Color Coding**: Intuitive color schemes for different wallet states
#### π₯οΈ Control Features
- **Start/Stop Controls**: Easy mining control with instant response
- **Feed Management**: Clear and manage live mining feed
- **Statistics Display**: Comprehensive real-time performance metrics
- **Status Indicators**: Clear visual status of all system components
### π Security & Best Practices
#### π‘οΈ Security Features
- **Secure Key Generation**: Cryptographically secure random number generation
- **Environment Variable Protection**: Secure handling of sensitive configuration
- **Input Validation**: Comprehensive validation of all user inputs
- **Error Isolation**: Isolated error handling prevents system compromise
- **Rate Limiting**: Built-in rate limiting for external API calls
#### π Best Practices
- **Educational Purpose**: Clearly documented educational and research use
- **Responsible Mining**: Cycle-based mining to prevent excessive resource usage
- **Privacy Considerations**: Guidelines for handling discovered private keys
- **Network Etiquette**: Respectful use of public RPC endpoints
### π§ Technical Specifications
#### π Dependencies
- **Python 3.8+**: Core runtime requirement
- **Gradio 4.44.0+**: Web interface framework
- **Solana SDK**: Official Solana Python libraries
- **Solders**: High-performance Solana operations
- **Base58**: Standard Base58 encoding/decoding
- **Requests**: HTTP client for Discord and RPC operations
- **Pydantic**: Data validation and settings management
#### ποΈ Architecture
- **Multi-Threading**: Separate threads for mining, Discord, and UI
- **Queue Systems**: Thread-safe communication between components
- **State Management**: Centralized state management with thread safety
- **Modular Design**: Clear separation of concerns and functionality
- **Extensible Framework**: Easy to extend with additional features
## π Quick Start Guide
### For Replit (Recommended)
1. **Fork/Import**: Import this repository to your Replit account
2. **Environment Setup**: Add Discord webhook in Secrets tab (optional)
3. **Run**: Click the Run button - mining starts automatically
4. **Monitor**: Watch real-time statistics and live feed
5. **Control**: Use the web interface to start/stop and generate keys
### Environment Configuration
Add these optional secrets in Replit's Secrets tab:
```
DISCORD_WEBHOOK=your_webhook_url_here
MIN_SOL=0.00001
RPC_BATCH_SIZE=100
MINER_SLEEP=1.0
MINER_NAME=MyMiner
MINER_LOCATION=Replit
```
### Discord Setup
1. Create a Discord webhook in your server
2. Copy the webhook URL
3. Add it to your Replit secrets as `DISCORD_WEBHOOK`
4. Start mining and receive notifications automatically
## π Mining Statistics Explained
- **Total Mined**: Total number of wallets generated and checked
- **Funded Found**: Number of wallets discovered with SOL balance
- **Success Rate**: Percentage of funded wallets vs total checked
- **Speed**: Current wallets per second processing rate
- **Uptime**: Total time the miner has been running
- **Cycle Info**: Current 30-minute cycle status and progress
- **RPC Performance**: Response times for different endpoints
- **Streak Tracking**: Current and best consecutive find streaks
## π― Use Cases
### Educational & Research
- Cryptocurrency key generation education
- Blockchain probability demonstrations
- Cryptographic security research
- Academic blockchain projects
### Development & Testing
- Solana development key generation
- Testing wallet functionalities
- Blockchain application development
- Security testing and validation
### Mining & Discovery
- Probabilistic wallet discovery
- Network analysis and research
- Performance benchmarking
- System stress testing
## β οΈ Important Notes
### Responsibility & Ethics
- This tool is for educational and research purposes
- Found private keys should be handled responsibly
- Respect network resources and rate limits
- Follow applicable laws and regulations
### Technical Limitations
- Finding funded wallets is extremely rare (probabilistic)
- RPC endpoints may rate limit requests
- Discord notifications require webhook setup
- Performance varies based on network conditions
### Privacy & Security
- Private keys are displayed in the interface
- Discord messages contain sensitive information
- Use private channels for Discord notifications
- Keep webhook URLs confidential
## π Platform Support
This application is optimized for:
- β
**Replit** (Recommended - Auto-configured)
- β
**Hugging Face Spaces** (Full compatibility)
- β
**Local Development** (Windows, macOS, Linux)
- β
**Docker Containers** (Ready for containerization)
- β
**Cloud Platforms** (AWS, GCP, DigitalOcean)
---
**Built with β€οΈ for the Solana community | Educational purposes only**
|