- Node.js: v18 or higher
- npm: v9 or higher
- Freighter Wallet: Browser extension
- Visit: https://chrome.google.com/webstore
- Search for "Freighter"
- Click "Add to Chrome/Brave/Edge"
- Pin the extension to your toolbar
- Visit: https://addons.mozilla.org/firefox
- Search for "Freighter"
- Click "Add to Firefox"
- Pin the extension to your toolbar
- Click the Freighter icon
- Choose "Create new account" or "Import account"
- Follow the setup wizard
- Save your recovery phrase securely
# Navigate to frontend directory
cd frontend
# Install dependencies
npm install
# Verify installation
npm list @stellar/freighter-apiExpected output:
@stellar/freighter-api@2.0.0
Create .env.local file in the frontend directory:
# For Testnet (recommended for development)
NEXT_PUBLIC_STELLAR_NETWORK=testnet
NEXT_PUBLIC_HORIZON_URL=https://horizon-testnet.stellar.org
NEXT_PUBLIC_API_URL=http://localhost:8000Or copy from example:
cp env.example .env.localIf using testnet:
- Open Freighter
- Copy your public key (starts with G...)
- Visit: https://laboratory.stellar.org/#account-creator
- Paste your public key
- Click "Get test network lumens"
- Wait for confirmation
# Start development server
npm run devThe app will be available at: http://localhost:3000
- Navigate to: http://localhost:3000/wallet-demo
- Click "Connect Wallet"
- Select "Freighter"
- Approve the connection in Freighter popup
- Verify your public key is displayed
- Freighter extension installed
- Freighter account created
- Dependencies installed (
npm installsuccessful) - Environment file created (
.env.local) - Development server running (
npm run dev) - Demo page accessible (http://localhost:3000/wallet-demo)
- Wallet connection successful
- Connection persists after page refresh
cd frontend
npm install @stellar/freighter-api- Install Freighter extension
- Refresh the browser page
- Try connecting again
- Click the Freighter extension icon
- Enter your password
- Try connecting again
- Open Freighter settings
- Switch to the correct network (Testnet/Mainnet)
- Try connecting again
# Use a different port
npm run dev -- -p 3001# Clear npm cache
npm cache clean --force
# Remove node_modules and package-lock.json
rm -rf node_modules package-lock.json
# Reinstall
npm installAfter successful installation:
- ✅ Review the demo page
- ✅ Test all wallet features
- ✅ Read integration guide:
frontend/WALLET_INTEGRATION.md - ✅ Integrate into your application
- ✅ Run through testing checklist:
frontend/TESTING_CHECKLIST.md
- Quick Start:
GET_STARTED.md - Setup Guide:
frontend/SETUP.md - Integration Guide:
frontend/WALLET_INTEGRATION.md - Testing:
frontend/TESTING_CHECKLIST.md - Freighter Docs: https://docs.freighter.app/
- Stellar Docs: https://developers.stellar.org/
If you encounter issues:
- Check the troubleshooting section above
- Review
frontend/WALLET_INTEGRATION.md - Check browser console for errors
- Verify Freighter is unlocked and on correct network
- Open an issue in the repository
- OS: Windows, macOS, or Linux
- Browser: Chrome, Firefox, Brave, or Edge (latest version)
- Node.js: v18.0.0 or higher
- npm: v9.0.0 or higher
- RAM: 4GB minimum
- Disk Space: 500MB for dependencies
You're ready to use the wallet integration. Start with the demo page at: http://localhost:3000/wallet-demo
For integration into your app, see GET_STARTED.md.