Get mining in under 5 minutes!
- Python 3.8+ installed
- MetaMask wallet (optional)
- 10 GB free disk space
- Internet connection
# Clone repository
git clone https://github.com/yourusername/velvet-chain.git
cd velvet-chain
# Run setup script
chmod +x setup.sh
./setup.shThe setup script will:
- ✅ Check Python version
- ✅ Install dependencies
- ✅ Configure your wallet
- ✅ Create startup script
- ✅ Set up systemd service (optional)
# Clone repository
git clone https://github.com/yourusername/velvet-chain.git
cd velvet-chain
# Install dependencies
pip install -r requirements.txt
# Start mining node
python node.py --mine --wallet YOUR_WALLET_ADDRESSpython node.py --mine --wallet 0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb1Output:
╔══════════════════════════════════════════════════════════╗
║ ║
║ 🔗 VELVET CHAIN v1.0.0 ║
║ Decentralized EVM-Compatible Blockchain ║
║ ║
╚══════════════════════════════════════════════════════════╝
✅ Genesis block created
💰 Initial supply: 1,000,000 VELVET → 0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb1
🌐 P2P network started on port 8545
⛏️ Mining started! Rewards → 0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb1
🎯 Target block time: 10s | Reward: 50 VELVET
============================================================
🚀 Node Running
============================================================
RPC Endpoint: http://localhost:8545
Explorer: http://localhost:8545/explorer
Chain ID: 16523431
Mining: ✅ Active
Wallet: 0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb1
Balance: 1,000,000.00 VELVET
Peers: 0
============================================================
⛏️ Mining block #1 (difficulty: 4)...
Mining... 523,489 attempts
⛏️ Block #1 mined! Hash: 0x00009a2b... (523489 H/s)
✅ Block #1 added to chain
💰 Mining reward: 50 VELVET → 0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb1
python node.pyThis runs a full node that validates and relays blocks without mining.
python node.py --port 8546 --mine --wallet 0xYourAddress- Open browser to
http://localhost:8545/explorer - Click "🦊 Add to MetaMask" button
- Approve in MetaMask
- Done! ✅
- Open MetaMask
- Click network dropdown
- Select "Add Network"
- Enter these details:
Network Name: Velvet Chain
RPC URL: http://localhost:8545
Chain ID: 16523431
Currency Symbol: VELVET
- Click "Save"
- Switch to Velvet Chain network
Your VELVET balance will appear in MetaMask automatically!
Visit: http://localhost:8545/explorer
You'll see:
- Your current balance
- Blocks you've mined
- Pending transactions
- Network statistics
# Check balance via API
curl -X POST http://localhost:8545 \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "eth_getBalance",
"params": ["YOUR_WALLET_ADDRESS", "latest"],
"id": 1
}'Just open MetaMask - your balance shows automatically!
# Connect to your VPS
ssh user@your-vps-ip
# Update system
sudo apt update && sudo apt upgrade -y
# Install Python 3
sudo apt install python3 python3-pip git -y
# Clone and setup
git clone https://github.com/yourusername/velvet-chain.git
cd velvet-chain
pip3 install -r requirements.txt
# Start mining
python3 node.py --mine --wallet YOUR_WALLET_ADDRESS# Create service file
sudo nano /etc/systemd/system/velvet-node.serviceAdd this content:
[Unit]
Description=Velvet Chain Mining Node
After=network.target
[Service]
Type=simple
User=YOUR_USERNAME
WorkingDirectory=/home/YOUR_USERNAME/velvet-chain
ExecStart=/usr/bin/python3 node.py --mine --wallet YOUR_WALLET_ADDRESS
Restart=always
RestartSec=10
[Install]
WantedBy=multi-user.targetEnable and start:
sudo systemctl enable velvet-node
sudo systemctl start velvet-node
sudo systemctl status velvet-node# Real-time logs
sudo journalctl -u velvet-node -f
# Recent logs
sudo journalctl -u velvet-node -n 100# Build image
docker build -t velvet-chain .
# Run container
docker run -d \
--name velvet-miner \
-p 8545:8545 \
velvet-chain \
--mine --wallet YOUR_WALLET_ADDRESS
# View logs
docker logs -f velvet-miner# Set wallet addresses
export WALLET_ADDRESS_1=0xYourAddress1
export WALLET_ADDRESS_2=0xYourAddress2
# Start all nodes
docker-compose up -d
# View logs
docker-compose logs -f
# Stop all nodes
docker-compose down-
Use Multiple Machines
- Run nodes on multiple computers
- Each increases your mining chance
- Use different wallet addresses
-
Optimize Performance
- Close unnecessary programs
- Use faster CPU (more cores = better)
- Keep system cool for sustained performance
-
Stay Connected
- Ensure stable internet connection
- Use wired connection over WiFi
- Monitor for disconnections
-
Run 24/7
- Use VPS for constant uptime
- Set up auto-restart on crashes
- Monitor remotely
With 10-second block time:
- Per Hour: ~360 blocks × 50 VELVET = 18,000 VELVET
- Per Day: ~8,640 blocks × 50 VELVET = 432,000 VELVET
- Per Month: ~259,200 blocks × 50 VELVET = 12,960,000 VELVET
Note: Earnings depend on network hashrate and your share
# Check Python version
python3 --version # Should be 3.8+
# Reinstall dependencies
pip3 install --upgrade -r requirements.txt
# Check port availability
sudo lsof -i :8545- Verify node is running:
http://localhost:8545/api/stats - Check Chain ID is correct: 16523431
- Try manual network addition
- Restart MetaMask
- Normal! Mining takes time (Proof of Work)
- Higher difficulty = slower mining
- More CPU cores = faster mining
- Check system resources (CPU, RAM)
- Check firewall settings
- Ensure port 8545 is open
- Wait for peer discovery (takes ~30 seconds)
- Bootstrap nodes may be down (normal)
- Wait for block confirmation (10 seconds)
- Refresh MetaMask
- Check correct wallet address
- Verify you're on Velvet Chain network
- Discord: https://discord.gg/velvetchain
- Twitter: https://twitter.com/velvetchain
- Telegram: https://t.me/velvetchain
- Report bugs: GitHub Issues
- Suggest features: GitHub Discussions
- Submit code: Pull Requests
- Help others: Discord/Telegram
- Deploy smart contracts (coming soon)
- Create DeFi protocols
- Build NFT marketplaces
- Develop dApps
- Share on social media
- Write blog posts
- Create tutorials
- Run community nodes
# Start mining node
python node.py --mine --wallet 0xYourAddress
# Start full node (no mining)
python node.py
# Custom port
python node.py --port 8546
# Check node status
curl http://localhost:8545/api/stats
# Get blockchain data
curl http://localhost:8545/api/chain
# Check address balance
curl http://localhost:8545/api/address/0xYourAddress
# View connected peers
curl http://localhost:8545/api/peers
# Stop node (Ctrl+C)
# Or if running as service:
sudo systemctl stop velvet-nodeNeed support?
- Check documentation: README.md
- Search issues: GitHub Issues
- Ask community: Discord
- Email: support@velvetchain.network
🔒 Keep Your Keys Safe
- Never share your private key
- Use hardware wallet for large amounts
- Backup your wallet
- Use strong passwords
🔒 Secure Your Node
- Keep software updated
- Use firewall
- Monitor for suspicious activity
- Regular security audits
Happy Mining! ⛏️💰
Start earning VELVET tokens today!