gas-mint-cli
v1.2.0
Published
Beautiful CLI tool for minting gas tokens on Auto-EVM network
Maintainers
Readme
🚀 Gas Mint CLI
A beautiful, interactive command-line tool for minting gas tokens on the Auto-EVM network. Built with React and Ink for a modern, visually appealing terminal experience.
✨ Features
- 🎨 Beautiful UI - Modern terminal interface built with React Ink
- ⚡ Fast Minting - Efficient gas token mining with optimized parameters
- 📊 Real-time Metrics - Track your mining performance and profitability
- 🔄 Continuous Mining - Automated mining with customizable intervals
- 💎 Auto-staking - Automatically stake portions of minted tokens for multipliers
- ⚙️ Easy Configuration - Interactive setup wizard for wallet and settings
- 🛡️ Secure - Private keys stored locally and encrypted
- 🎯 CLI Flags - Quick configuration via command-line arguments
🚀 Quick Start
Installation
# Install globally via npm
npm install -g gas-mint-cli
# Or run directly with npx (no installation needed)
npx gas-mint-cliFirst Run
Launch the CLI:
gas-mintConfigure your wallet (first time only):
- Enter your private key (stored securely locally)
- Set your preferred mining parameters
- Configure auto-staking if desired
Start minting! 🎉
📖 Usage
Interactive Mode
Simply run gas-mint to launch the interactive menu:
gas-mintNavigate through the beautiful interface to:
- 🚀 Start single mints
- 🔄 Run continuous mining
- 📊 View detailed metrics
- ⚙️ Configure settings
Command Line Flags
For power users and automation:
# Quick mint with custom parameters
gas-mint --private-key 0x... --writes 300 --include-intrinsic
# Continuous mining mode
gas-mint --private-key 0x... --continuous --interval 120 --auto-stake 25
# Configuration menu
gas-mint --config
# Custom RPC endpoint
gas-mint --rpc-url https://your-rpc-endpoint.comAvailable Flags
| Flag | Description | Default |
|------|-------------|---------|
| -k, --private-key | Your wallet private key | - |
| -r, --rpc-url | Auto-EVM RPC endpoint | https://auto-evm.mainnet.autonomys.xyz/ws |
| -w, --writes | Storage writes per mint (1-369) | 369 |
| -i, --include-intrinsic | Include intrinsic gas cost | false |
| -m, --min-mint | Minimum mint amount (wei) | 0 |
| --auto-stake | Auto-stake percentage (0-100) | 0 |
| --continuous | Run continuous mining | false |
| --interval | Seconds between mints | 60 |
| --config | Show configuration menu | false |
🎯 How It Works
Gas Mint CLI interacts with the GasMintToken contract on Auto-EVM to:
- Perform Storage Writes: Execute configurable storage operations that consume gas
- Calculate Rewards: Mint tokens proportional to gas consumed:
tokens = gas_used * gas_price * multiplier - Apply Multipliers: Benefit from staking bonuses (up to 50% bonus for long-term staking)
- Track Performance: Monitor profitability, success rates, and mining statistics
Contract Details
- Contract Address:
0xbC2982173e82D574773c3dd6d2A62fD59Dd8bF0A - Network: Auto-EVM (Chain ID 870)
- Explorer: View Contract
📊 Metrics & Analytics
The CLI provides comprehensive analytics:
- Total Mints: Number of successful mining operations
- Success Rate: Percentage of successful transactions
- Tokens Minted: Total GMT tokens earned
- Gas Spent: Total ETH spent on gas fees
- Profit/Loss: Real-time P&L calculation
- Average Gas Price: Historical gas price tracking
- Mining Efficiency: Performance analysis and recommendations
⚙️ Configuration
Secure Storage
Your configuration is stored locally using the conf package:
- macOS:
~/Library/Preferences/gas-mint-cli/ - Windows:
%APPDATA%\gas-mint-cli\ - Linux:
~/.config/gas-mint-cli/
Private keys are stored securely and never transmitted anywhere except directly to the blockchain.
Settings
Configure these parameters for optimal mining:
- Storage Writes (1-369): Higher = more gas = more tokens
- Include Intrinsic: Add 21,000 gas for higher yields
- Auto-stake Percentage: Automatically stake % of earnings for compound growth
- Mining Interval: Time between mints in continuous mode
- Minimum Mint: Slippage protection for volatile gas prices
🔄 Continuous Mining
Perfect for passive income generation:
# Start continuous mining with 2-minute intervals
gas-mint --continuous --interval 120 --auto-stake 30
# Or use the interactive menu for full control
gas-mintFeatures:
- ⏱️ Customizable intervals
- 📊 Real-time session statistics
- 🔄 Auto-restart on failures
- 💎 Automatic staking integration
- ⏸️ Easy start/stop controls (Spacebar)
🛠️ Development
Prerequisites
- Node.js 18+
- npm or yarn
Setup
# Clone the repository
git clone https://github.com/yourusername/gas-mint-cli.git
cd gas-mint-cli
# Install dependencies
npm install
# Run in development mode
npm run dev
# Build for production
npm run buildProject Structure
src/
├── components/ # React Ink UI components
│ ├── App.tsx # Main application
│ ├── Header.tsx # Header with wallet info
│ ├── MainMenu.tsx # Navigation menu
│ ├── ConfigScreen.tsx # Configuration wizard
│ ├── MintScreen.tsx # Single mint interface
│ ├── MetricsScreen.tsx # Analytics dashboard
│ └── ContinuousMintScreen.tsx # Continuous mining
├── services/ # Business logic
│ ├── Web3Service.ts # Blockchain interactions
│ └── ConfigService.ts # Configuration management
├── types.ts # TypeScript definitions
└── index.tsx # CLI entry point🤝 Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
⚠️ Disclaimer
This tool is for educational and experimental purposes. Gas token mining involves real cryptocurrency transactions and gas fees. Always:
- ✅ Test with small amounts first
- ✅ Monitor gas prices and profitability
- ✅ Understand the risks involved
- ✅ Keep your private keys secure
Use at your own risk. The developers are not responsible for any financial losses.
🆘 Support
Made with ❤️ and ⚡ by the Gas Mint CLI team
⭐ Star this repo if you found it helpful!
