Skip to content

Wallet Best Practices for Development

✅ Use Separate Wallets

For Local Testing:

  • Use a test wallet with testnet tokens only
  • Create a new MetaMask account or use a separate wallet
  • Fund it with Sepolia ETH from a faucet
  • Never use your main wallet or deployment wallet

For Deployment:

  • Use a dedicated deployment wallet
  • Keep private keys secure (hardware wallet recommended)
  • Separate from testing wallet
  • Separate from personal wallet

For Personal Use:

  • Use your main wallet only for production interactions
  • Never use for testing or deployment

Why Separate Wallets?

  1. Security: If test wallet is compromised, main funds are safe
  2. Organization: Clear separation of test vs production
  3. Safety: Prevents accidental transactions on wrong network
  4. Best Practice: Industry standard for development

Setting Up Test Wallet

Option 1: New MetaMask Account

  1. Open MetaMask
  2. Click account icon (top right)
  3. Click "Create Account"
  4. Name it "CR8 Testing" or "Sepolia Test"
  5. Switch to this account for testing
  6. Get Sepolia ETH from faucet:

Option 2: Import Test Wallet

  1. Create a new wallet (write down seed phrase)
  2. Import into MetaMask
  3. Use only for testing
  4. Fund with testnet tokens only

Network Configuration Warnings

The warnings you're seeing are MetaMask network validation warnings. They're usually safe to ignore for testing, but here's how to fix them:

Fix Network Warnings

  1. Add Sepolia Network Properly:

    • Network Name: Sepolia
    • RPC URL: https://sepolia.infura.io/v3/YOUR_INFURA_KEY or https://rpc.sepolia.org
    • Chain ID: 11155111
    • Currency Symbol: ETH
    • Block Explorer: https://sepolia.etherscan.io
  2. Or Use MetaMask's Built-in Sepolia:

    • MetaMask has Sepolia pre-configured
    • Go to Settings → Networks → Add Network
    • Search for "Sepolia" and add it

Current Setup Recommendations

For Local Testing:

  • ✅ Use test wallet with Sepolia ETH
  • ✅ Use Sepolia network (Chain ID: 11155111)
  • ✅ Test all features before deployment
  • ✅ Use test tokens only

For Deployment:

  • ✅ Use deployment wallet (separate from test wallet)
  • ✅ Use same Sepolia network
  • ✅ Verify all contract addresses
  • ✅ Test deployment on testnet first

Security Checklist

  • [ ] Test wallet separate from main wallet
  • [ ] Test wallet separate from deployment wallet
  • [ ] Test wallet only has testnet tokens
  • [ ] Never share test wallet seed phrase
  • [ ] Deployment wallet uses hardware wallet (if possible)
  • [ ] Main wallet never used for testing

Testing Workflow

  1. Setup:

    • Create test wallet
    • Fund with Sepolia ETH
    • Configure network properly
  2. Test Locally:

    • Connect test wallet to localhost:3000
    • Test all features
    • Verify transactions work
  3. Deploy to Testnet:

    • Use deployment wallet
    • Deploy contracts
    • Test with test wallet
  4. Production:

    • Use main wallet (if needed)
    • Only after thorough testing

CR8 Platform Documentation