- Fixed all 25 TypeScript compilation errors in frontend - Updated usePolling hook interface for cleaner usage - Added proper type exports for API functions - Fixed Dashboard profitChange null safety - Added wallet validation in config - Created wallet setup utilities (check-env.js, generate-wallet.js) - Added Polymarket agents as git submodule - Added comprehensive documentation (TYPESCRIPT_FIXES.md, WALLET_SETUP.md, GIT_SUBMODULES.md)
2.0 KiB
2.0 KiB
⚠️ WALLET PRIVATE KEY CONFIGURATION REQUIRED
Issue
Your WALLET_PRIVATE_KEY in the .env file is currently set to a placeholder value.
What You Need to Do
Option 1: Use Your Existing Wallet (Recommended for Testing)
If you have a wallet (like MetaMask) that you want to use for testing:
-
Export your private key from MetaMask:
- Open MetaMask
- Click the account menu (3 dots)
- Select "Account Details"
- Click "Export Private Key"
- Enter your MetaMask password
- Copy the private key (it will be 64 hex characters)
-
Update your .env file:
WALLET_PRIVATE_KEY=0x<your-64-character-private-key>
⚠️ IMPORTANT: Only use a TEST wallet with small amounts for development!
Option 2: Create a New Test Wallet
Run this script to generate a new wallet:
node -e "const ethers = require('ethers'); const wallet = ethers.Wallet.createRandom(); console.log('Private Key:', wallet.privateKey); console.log('Address:', wallet.address);"
Then:
- Copy the private key
- Update your
.envfile:WALLET_PRIVATE_KEY=<generated-private-key> - Send some test BNB to the address for gas fees
Option 3: Use OpenAI Swarm Agent Mode (No Wallet Required)
If you want to run in simulation mode without a real wallet:
-
Update your
.envfile:# Leave this as placeholder or empty WALLET_PRIVATE_KEY= # Enable swarm mode USE_SWARM_MODE=true -
The bot will run in simulation mode using AI agents
Verify Configuration
After updating your .env file, run:
node check-env.js
This will verify your configuration is correct.
Security Reminders
- ⚠️ NEVER commit your
.envfile to git - ⚠️ NEVER share your private key
- ⚠️ Only use TEST wallets with small amounts for development
- ⚠️ Keep your
.envfile secure
For more information, see the main README.md or SETUP_GUIDE.md