486 lines
12 KiB
Markdown
486 lines
12 KiB
Markdown
# Complete Wallet Funding Instructions
|
|
**Date:** October 29, 2025
|
|
**Status:** Ready for Funding
|
|
**Bot Wallet:** `0x40091653f652a259747D86d7Cbe3e2848082a051`
|
|
|
|
---
|
|
|
|
## 🎯 Current Status
|
|
|
|
**✅ Everything is prepared:**
|
|
- Wallet generated and secured
|
|
- Setup scripts created and tested
|
|
- Bot configuration ready
|
|
- Monitoring system active
|
|
- Execution mode config prepared
|
|
|
|
**⏳ Waiting for:**
|
|
- **0.01-0.05 ETH** sent to bot wallet on **Arbitrum One**
|
|
|
|
---
|
|
|
|
## 💰 Bot Wallet Details
|
|
|
|
```
|
|
Address: 0x40091653f652a259747D86d7Cbe3e2848082a051
|
|
Network: Arbitrum One (Chain ID: 42161)
|
|
Required: 0.01-0.05 ETH
|
|
Current Balance: 0 ETH
|
|
```
|
|
|
|
**Private Key (for importing to MetaMask):**
|
|
```
|
|
0x6a0478e329faa2d0dd2e27eac9ffe91ef49fa2e921f73e0b844c3c4921387492
|
|
```
|
|
|
|
**⚠️ NEVER share the private key with anyone!**
|
|
|
|
---
|
|
|
|
## 📋 Funding Methods (Choose One)
|
|
|
|
### **Method 1: MetaMask (Easiest)** ⭐
|
|
|
|
**Step-by-step:**
|
|
|
|
1. **Open MetaMask Extension**
|
|
- If you don't have it: https://metamask.io
|
|
|
|
2. **Add Arbitrum One Network:**
|
|
- Click network dropdown (top left)
|
|
- Select **"Add Network"** → **"Add network manually"**
|
|
- Enter:
|
|
```
|
|
Network Name: Arbitrum One
|
|
RPC URL: https://arb1.arbitrum.io/rpc
|
|
Chain ID: 42161
|
|
Currency Symbol: ETH
|
|
Block Explorer: https://arbiscan.io
|
|
```
|
|
- Click **"Save"**
|
|
|
|
3. **Switch to Arbitrum One Network**
|
|
- Click network dropdown
|
|
- Select **"Arbitrum One"**
|
|
|
|
4. **Send ETH to Bot Wallet:**
|
|
- Click **"Send"**
|
|
- Paste address: `0x40091653f652a259747D86d7Cbe3e2848082a051`
|
|
- Amount: **0.02-0.05 ETH** (recommended: 0.03 ETH)
|
|
- Click **"Next"** → **"Confirm"**
|
|
- Wait 1-2 minutes for confirmation
|
|
|
|
5. **Verify Transaction:**
|
|
- View on Arbiscan: https://arbiscan.io/address/0x40091653f652a259747D86d7Cbe3e2848082a051
|
|
|
|
---
|
|
|
|
### **Method 2: Cast (Command Line)** 🛠️
|
|
|
|
**If you have a funded wallet and Foundry installed:**
|
|
|
|
```bash
|
|
cd /home/administrator/projects/mev-beta
|
|
./scripts/fund-bot-wallet.sh
|
|
```
|
|
|
|
**What it does:**
|
|
- Prompts for your source wallet (private key or keystore)
|
|
- Checks source balance to ensure you won't exhaust funds
|
|
- Sends exactly 0.01 ETH (or custom amount)
|
|
- Keeps safety buffer in source wallet
|
|
- Confirms transaction on Arbiscan
|
|
- Automatically verifies bot wallet received funds
|
|
|
|
**Interactive prompts will guide you through:**
|
|
1. Choose source wallet method
|
|
2. Verify sufficient balance
|
|
3. Review transaction summary
|
|
4. Confirm and send
|
|
5. Wait for confirmation
|
|
|
|
---
|
|
|
|
### **Method 3: Bridge from Ethereum** 🌉
|
|
|
|
**If you have ETH on Ethereum mainnet:**
|
|
|
|
1. **Visit Arbitrum Bridge:**
|
|
```
|
|
https://bridge.arbitrum.io/
|
|
```
|
|
|
|
2. **Connect Wallet:**
|
|
- Click **"Connect Wallet"**
|
|
- Select MetaMask
|
|
|
|
3. **Bridge ETH:**
|
|
- From: Ethereum
|
|
- To: Arbitrum One
|
|
- Amount: **0.02-0.05 ETH**
|
|
- Recipient: Leave as your address (you'll send to bot later)
|
|
|
|
4. **Confirm Transaction:**
|
|
- Approve on MetaMask
|
|
- Wait 7-15 minutes for bridging
|
|
|
|
5. **Send to Bot Wallet:**
|
|
- Once bridged, send from your wallet to bot wallet
|
|
- To: `0x40091653f652a259747D86d7Cbe3e2848082a051`
|
|
|
|
---
|
|
|
|
### **Method 4: Exchange Withdrawal** 💱
|
|
|
|
**If you have ETH on Coinbase/Binance/Kraken:**
|
|
|
|
1. **Go to Exchange:**
|
|
- Login to your exchange account
|
|
- Navigate to **Withdraw** → **ETH**
|
|
|
|
2. **Select Network:**
|
|
- ⚠️ **CRITICAL:** Select **"Arbitrum One"** network
|
|
- ❌ **NOT** Ethereum mainnet
|
|
- ❌ **NOT** Arbitrum Nova
|
|
- ✅ **MUST BE** Arbitrum One
|
|
|
|
3. **Enter Details:**
|
|
- Address: `0x40091653f652a259747D86d7Cbe3e2848082a051`
|
|
- Amount: **0.02-0.05 ETH**
|
|
- Network: **Arbitrum One** (double-check!)
|
|
|
|
4. **Confirm Withdrawal:**
|
|
- Review details carefully
|
|
- Confirm withdrawal
|
|
- Wait 5-15 minutes for confirmation
|
|
|
|
5. **Verify on Arbiscan:**
|
|
- https://arbiscan.io/address/0x40091653f652a259747D86d7Cbe3e2848082a051
|
|
|
|
---
|
|
|
|
## 🤖 Automated Setup (After Funding)
|
|
|
|
**Option 1: Fully Automated (Recommended)** ⭐
|
|
|
|
Once you fund the wallet, run:
|
|
|
|
```bash
|
|
cd /home/administrator/projects/mev-beta
|
|
./scripts/monitor-and-setup.sh
|
|
```
|
|
|
|
**What it does:**
|
|
1. ✅ Monitors wallet every 10 seconds
|
|
2. ✅ Detects when funds arrive
|
|
3. ✅ Automatically runs keystore setup
|
|
4. ✅ Enables execution mode
|
|
5. ✅ Restarts bot with live trading
|
|
6. ✅ Shows live logs
|
|
|
|
**Just run it and fund the wallet** - everything else is automatic! 🚀
|
|
|
|
---
|
|
|
|
**Option 2: Manual Step-by-Step**
|
|
|
|
If you prefer to control each step:
|
|
|
|
```bash
|
|
# 1. Verify balance
|
|
./scripts/check-wallet-balance.sh
|
|
|
|
# 2. Configure keystore
|
|
./scripts/setup-keystore.sh
|
|
|
|
# 3. Enable execution mode
|
|
./scripts/enable-execution-mode.sh
|
|
|
|
# 4. Restart bot
|
|
pkill -f mev-beta
|
|
GO_ENV=production nohup ./bin/mev-beta start > logs/mev_bot_production.log 2>&1 &
|
|
|
|
# 5. Monitor logs
|
|
tail -f logs/mev_bot.log | grep "EXECUTION\|Profit"
|
|
```
|
|
|
|
---
|
|
|
|
## 💡 Funding Amount Recommendations
|
|
|
|
| Amount | USD Value* | Estimated Trades | Best For |
|
|
|--------|-----------|------------------|----------|
|
|
| 0.01 ETH | ~$20 | 30-40 | Testing/Minimum |
|
|
| **0.03 ETH** | **~$60** | **100+ trades** | **⭐ Recommended** |
|
|
| 0.05 ETH | ~$100 | 150+ trades | Optimal/Long-term |
|
|
|
|
*At $2000/ETH
|
|
|
|
**Gas Cost:** ~$0.30-0.50 per trade on Arbitrum
|
|
|
|
**Recommendation:** Start with **0.03 ETH** for ~2 weeks of operation before needing refill.
|
|
|
|
---
|
|
|
|
## ✅ Verification Checklist
|
|
|
|
After funding, verify:
|
|
|
|
- [ ] Transaction confirmed on Arbiscan
|
|
- [ ] Wallet shows balance ≥ 0.01 ETH
|
|
- [ ] Ran `./scripts/check-wallet-balance.sh` successfully
|
|
- [ ] Keystore configured (if running manual setup)
|
|
- [ ] Execution mode enabled (if running manual setup)
|
|
- [ ] Bot restarted and running (check with `ps aux | grep mev-beta`)
|
|
- [ ] Logs showing opportunities detected
|
|
|
|
---
|
|
|
|
## 🔍 How to Verify Transaction
|
|
|
|
**Method 1: Arbiscan (Recommended)**
|
|
```
|
|
Visit: https://arbiscan.io/address/0x40091653f652a259747D86d7Cbe3e2848082a051
|
|
|
|
Look for:
|
|
• "Balance" section should show your ETH amount
|
|
• Recent transaction in the list
|
|
• Green checkmark = confirmed
|
|
```
|
|
|
|
**Method 2: Command Line**
|
|
```bash
|
|
./scripts/check-wallet-balance.sh
|
|
```
|
|
|
|
**Expected Output:**
|
|
```
|
|
✅ Wallet Address: 0x40091653f652a259747D86d7Cbe3e2848082a051
|
|
✅ Balance: 0.030000 ETH
|
|
✅ Wallet is funded and ready for execution!
|
|
```
|
|
|
|
---
|
|
|
|
## 📊 What Happens After Funding?
|
|
|
|
### **Automated Setup (if using monitor-and-setup.sh):**
|
|
|
|
```
|
|
[2025-10-29 18:00:00] Check #1: Balance = 0 ETH
|
|
[2025-10-29 18:00:10] Check #2: Balance = 0 ETH
|
|
[2025-10-29 18:00:20] Check #3: Balance = 0.03 ETH
|
|
|
|
🎉 FUNDING DETECTED!
|
|
|
|
✅ Wallet Balance: 0.03 ETH
|
|
📊 Wallet Capacity: ~100 transactions
|
|
|
|
🚀 Proceeding with Automated Setup
|
|
|
|
Step 1/3: Configuring encrypted keystore...
|
|
✅ Keystore configured successfully!
|
|
|
|
Step 2/3: Enabling execution mode...
|
|
✅ Execution mode enabled!
|
|
|
|
Step 3/3: Restarting bot in execution mode...
|
|
✅ Bot started with PID: 12345
|
|
✅ Bot is running successfully!
|
|
|
|
🎉 SETUP COMPLETE - BOT IS LIVE!
|
|
```
|
|
|
|
### **Bot Will Then:**
|
|
|
|
1. **Monitor Network:**
|
|
- Connect to Arbitrum via 6 RPC endpoints
|
|
- Process every block (~0.25s interval)
|
|
- Scan all DEX transactions
|
|
|
|
2. **Detect Opportunities:**
|
|
- Identify price discrepancies across DEXs
|
|
- Calculate profitability (must be >0.1% and >$10)
|
|
- Score by confidence (min 70%)
|
|
|
|
3. **Execute Trades:**
|
|
- Request flash loan (0% fee from Balancer)
|
|
- Execute multi-hop arbitrage
|
|
- Repay loan + capture profit
|
|
- All in single atomic transaction
|
|
|
|
4. **Accumulate Profits:**
|
|
- Profits automatically added to your wallet
|
|
- Check anytime on Arbiscan
|
|
- Withdraw whenever you want
|
|
|
|
---
|
|
|
|
## 📈 Expected Performance
|
|
|
|
**Conservative Estimates:**
|
|
- Opportunities detected: 50-200/day
|
|
- Trades executed: 5-20/day (only best opportunities)
|
|
- Average profit: $15-50 per trade (after gas)
|
|
- Daily profit: $75-400
|
|
- Weekly profit: $500-2,800
|
|
|
|
**Actual results depend on:**
|
|
- Market volatility (higher = more opportunities)
|
|
- Network conditions (lower gas = better profits)
|
|
- Competition from other MEV bots
|
|
- DEX liquidity depth
|
|
|
|
---
|
|
|
|
## 🛑 Emergency Actions
|
|
|
|
**If Something Goes Wrong:**
|
|
|
|
```bash
|
|
# Stop bot immediately
|
|
pkill -f mev-beta
|
|
|
|
# Check what happened
|
|
tail -100 logs/mev_bot.log
|
|
|
|
# Disable execution mode
|
|
sed -i 's/enabled: true/enabled: false/g' config/bot_config.yaml
|
|
|
|
# Restart in monitoring-only mode
|
|
sed -i 's/mode: "execution"/mode: "monitoring"/g' config/bot_config.yaml
|
|
GO_ENV=production nohup ./bin/mev-beta start &
|
|
```
|
|
|
|
**Move Funds to Safety:**
|
|
```bash
|
|
# Import bot wallet to MetaMask using private key
|
|
# Send all ETH to your main wallet
|
|
# Or use cast to send programmatically
|
|
```
|
|
|
|
---
|
|
|
|
## 🔒 Security Reminders
|
|
|
|
**Critical Security Rules:**
|
|
|
|
1. ✅ **Never share private key**
|
|
- Store in password manager
|
|
- Don't paste in Discord/Telegram
|
|
- Don't commit to git
|
|
|
|
2. ✅ **Use dedicated wallet only**
|
|
- This wallet is ONLY for bot
|
|
- Don't use your main wallet
|
|
- Don't mix with personal funds
|
|
|
|
3. ✅ **Monitor regularly**
|
|
- Check balance daily
|
|
- Review transactions on Arbiscan
|
|
- Watch for suspicious activity
|
|
|
|
4. ✅ **Withdraw profits**
|
|
- Periodically move profits to main wallet
|
|
- Keep only gas money in bot wallet
|
|
- Don't accumulate large amounts
|
|
|
|
5. ✅ **Backup everything**
|
|
- Private key in password manager
|
|
- Encryption key backed up
|
|
- Keystore files backed up
|
|
|
|
---
|
|
|
|
## 💬 Support & Resources
|
|
|
|
**Quick Commands:**
|
|
```bash
|
|
# Check wallet balance
|
|
./scripts/check-wallet-balance.sh
|
|
|
|
# Monitor setup progress
|
|
./scripts/monitor-and-setup.sh
|
|
|
|
# Fund wallet (interactive)
|
|
./scripts/fund-bot-wallet.sh
|
|
|
|
# View live logs
|
|
tail -f logs/mev_bot.log
|
|
|
|
# Check bot status
|
|
ps aux | grep mev-beta
|
|
```
|
|
|
|
**View on Blockchain:**
|
|
- Wallet: https://arbiscan.io/address/0x40091653f652a259747D86d7Cbe3e2848082a051
|
|
- ArbitrageExecutor: https://arbiscan.io/address/0x6C2B1c6Eb0e5aB73d8C60944c74A62bfE629c418
|
|
- FlashSwapper: https://arbiscan.io/address/0x7Cc97259cBe0D02Cd0b8A80c2E1f79C7265808b4
|
|
|
|
**Documentation:**
|
|
- Complete setup guide: `docs/EXECUTION_SETUP_COMPLETE_GUIDE_20251029.md`
|
|
- Wallet setup: `docs/WALLET_SETUP_INSTRUCTIONS.md`
|
|
- Contract funding: `docs/CONTRACT_FUNDING_GUIDE_20251029.md`
|
|
|
|
---
|
|
|
|
## 🎯 Quick Start Summary
|
|
|
|
**TL;DR - Fastest Path to Live Trading:**
|
|
|
|
1. **Fund the wallet** (Choose easiest method):
|
|
```
|
|
Send 0.03 ETH to:
|
|
0x40091653f652a259747D86d7Cbe3e2848082a051
|
|
|
|
Network: Arbitrum One (Chain ID: 42161)
|
|
```
|
|
|
|
2. **Run automated setup:**
|
|
```bash
|
|
cd /home/administrator/projects/mev-beta
|
|
./scripts/monitor-and-setup.sh
|
|
```
|
|
|
|
3. **Watch it work:**
|
|
- Script detects funding automatically
|
|
- Completes all setup
|
|
- Starts bot
|
|
- Shows live logs
|
|
|
|
**That's it!** The bot will be capturing MEV profits within minutes. 🚀
|
|
|
|
---
|
|
|
|
## ❓ Common Questions
|
|
|
|
**Q: How do I know if funding worked?**
|
|
A: Check Arbiscan - https://arbiscan.io/address/0x40091653f652a259747D86d7Cbe3e2848082a051
|
|
Balance should show your sent amount within 1-2 minutes.
|
|
|
|
**Q: How long does bridging take?**
|
|
A: Ethereum→Arbitrum bridge: 7-15 minutes
|
|
Exchange withdrawal: 5-15 minutes
|
|
Wallet-to-wallet on Arbitrum: 1-2 minutes
|
|
|
|
**Q: Can I send less than 0.01 ETH?**
|
|
A: Yes, but you'll only have ~10-20 trades before needing refill.
|
|
Recommended minimum: 0.01 ETH for testing, 0.03 ETH for real use.
|
|
|
|
**Q: What if I send to wrong network?**
|
|
A: ⚠️ If sent to Ethereum instead of Arbitrum, funds are stuck!
|
|
ALWAYS double-check: Network = Arbitrum One, Chain ID = 42161
|
|
|
|
**Q: Can I withdraw funds later?**
|
|
A: Yes! Import private key to MetaMask anytime and send funds out.
|
|
|
|
**Q: Is this safe?**
|
|
A: Flash loans are atomic - if trade fails, entire transaction reverts.
|
|
Worst case: waste gas fee (~$0.30). Your capital stays safe.
|
|
|
|
---
|
|
|
|
**Status:** Waiting for wallet funding
|
|
**Action Required:** Send 0.01-0.05 ETH to bot wallet on Arbitrum One
|
|
**Next:** Run `./scripts/monitor-and-setup.sh` and watch automation complete! 🚀
|