π OGC Mainnet Deployment Guide
β οΈ CRITICAL PREREQUISITES
Before deploying OGC to mainnet, ensure you have:
1. Real XLM (Stellar Lumens)
- Minimum Required: 4-5 XLM
- Recommended: 10+ XLM for safety margin
- Purpose: Account creation (2 XLM minimum per account) + transaction fees
2. Security Setup
3. Testing Complete
π§ DEPLOYMENT PROCESS
Step 1: Get XLM
Purchase XLM from exchanges like:
- Coinbase
- Kraken
- Binance
- StellarTerm DEX
Step 2: Run Deployment Script
cd tools
python deploy_mainnet.py
The script will:
- Create or use existing issuer account
- Create or use existing distribution account
- Guide you through funding accounts manually
- Create OGC asset on mainnet
- Issue 1,000,000 OGC tokens
- Generate production .env file
Step 3: Verify Deployment
After successful deployment, verify on Stellar Expert:
- Check issuer account exists
- Verify 1M OGC tokens issued
- Confirm asset details are correct
Step 4: Update Website
Update website to reflect mainnet status:
- Change references from βtestnetβ to βmainnetβ
- Update wallet instructions
- Add mainnet asset information
π SECURITY BEST PRACTICES
- Backup Keys: Store secret keys in multiple secure locations
- Test Small Amount: Send small test transactions first
- Document Everything: Record all account addresses and transaction IDs
- Secure .env: Ensure .env file is in .gitignore and never committed
Long-term Security
- Hardware Wallets: Consider moving large amounts to hardware wallets
- Multi-signature: Implement multi-sig for additional security
- Regular Backups: Keep multiple encrypted backups
- Access Controls: Limit who has access to production keys
π POST-DEPLOYMENT UPDATES
Website Updates Needed
π¨ EMERGENCY PROCEDURES
If Something Goes Wrong
- Donβt Panic: Most issues are recoverable
- Check Transaction History: Use Stellar Expert to trace transactions
- Verify Account Status: Ensure accounts arenβt locked/frozen
- Community Support: Reach out to Stellar community if needed
Backup Recovery
If you lose access to keys:
- Check all backup locations
- Try password recovery methods
- Contact exchange if keys are there
- Remember: Lost keys = lost tokens (no recovery possible)
π MAINNET VS TESTNET DIFFERENCES
| Aspect |
Testnet |
Mainnet |
| Cost |
Free |
Real XLM required |
| Value |
No real value |
Real cryptocurrency |
| Accounts |
Free via Friendbot |
Must fund manually |
| Reversibility |
Can reset/recreate |
Permanent |
| URL |
horizon-testnet.stellar.org |
horizon.stellar.org |
| Network |
TESTNET_NETWORK_PASSPHRASE |
PUBLIC_NETWORK_PASSPHRASE |
π― SUCCESS CHECKLIST
After deployment, you should have:
π USEFUL LINKS
- Stellar Expert: https://stellar.expert/explorer/public
- StellarTerm DEX: https://stellarterm.com
- Stellar Account Viewer: https://accountviewer.stellar.org
- Stellar Laboratory: https://laboratory.stellar.org
- OGC Asset Page: https://stellar.expert/explorer/public/asset/OGC-[ISSUER_ADDRESS]
β οΈ FINAL WARNING: Mainnet deployment creates a real cryptocurrency with real value. Ensure you understand the implications and have proper security measures in place before proceeding.