📱 Xaman Dashboard Setup
Complete guide to setting up Xaman (XUMM) Wallet integration for XRP Genie projects.
🎯 Overview
Xaman provides QR code authentication and transaction signing for XRPL applications. You’ll need:
- XUMM Developer Account
- API Key & Secret
- App Configuration
🚀 Step 1: Create XUMM Developer Account
- Go to XUMM Developer Portal
- Click “Sign up” or “Login”
- Verify your email address
🏗️ Step 2: Create New Application
- Click “Create new app”
- Fill in app details:
- App Name:
My XRP Genie App
- App Description: Brief description of your app
- App Icon: Upload your app icon (optional)
- Webhook URL: Leave blank for now
- App Name:
🔑 Step 3: Get API Credentials
- After creating your app, you’ll see:
- API Key:
xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
- API Secret:
xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
- API Key:
- Copy both values - you’ll need them in your .env.local
⚙️ Step 4: Configure XRP Genie
When running the CLI, select:
- Mode: Xaman Wallet
- Network: Testnet (for development) or Mainnet (for production)
📝 Step 5: Add API Keys
In your generated project, update .env.local
:
# Xaman/XUMM Configuration
XUMM_API_KEY=your-api-key-here
XUMM_API_SECRET=your-api-secret-here
🧪 Step 6: Test Your Integration
- Start your development server:
npm run dev
- Open
http://localhost:3000
- Click “Connect Wallet”
- You should see a QR code
- Scan with Xaman app to test authentication
⚠️ Common Issues
QR Code Not Appearing
Cause: Missing or invalid API credentials
Solution:
- Verify API key and secret are correct
- Check .env.local file exists
- Restart development server
“Invalid Payload” Error
Cause: Network mismatch or payload configuration
Solution:
- Ensure you selected the correct network in CLI
- Check if using testnet with testnet Xaman app
- Verify API keys are from correct XUMM app
🌐 Network Configuration
Testnet (Development)
- Use testnet API keys
- Test with testnet XRP
- Xaman app can switch to testnet mode
Mainnet (Production)
- Use mainnet API keys
- Real XRP transactions
- Add production domain to XUMM app settings
🔒 Security Best Practices
✅ Do:
- Keep API secrets in .env.local only
- Use server-side API routes (XRP Genie handles this)
- Test thoroughly on testnet before mainnet
❌ Don’t:
- Commit .env.local to Git
- Expose API secrets in client-side code
- Use mainnet for development
💡 Tips
- Start with testnet for development
- API credentials are environment-specific
- QR codes expire after a few minutes
- Users need Xaman app installed on their phone