Testing Philosophy
Test with small amounts on mainnet. Solana devnet/testnet tokens have no value and often have different behavior than mainnet.Safe Testing Practices
1. Start Small
Test with minimal amounts:- 0.001 SOL for transfers (~$0.20)
- $1-5 worth of tokens for swaps
- Use common tokens (USDC, USDT) for reliability
2. Transaction Costs
Solana transactions are cheap (~$0.00025 per transaction), making mainnet testing affordable.3. Progressive Testing
Testing Checklist
Environment Setup
Basic Tests
-
Wallet Connection
-
Balance Check
-
Small SOL Transfer
-
Token Transfer
Swap Testing
Test swaps with small amounts:Portfolio Tracking
Monitoring Results
-
Transaction Verification
- Check on Solscan.io or Solana Explorer
- Verify transaction succeeded
- Confirm balance changes
-
Common Token Addresses
- USDC: EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v
- USDT: Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB
- Use these for testing as they’re widely supported
Common Issues
”Insufficient SOL for fees”
- Need ~0.001 SOL for transaction fees
- Keep some SOL for rent and fees
”Token account doesn’t exist”
- First transfer to a new token creates the account
- Costs ~0.002 SOL for account creation
”Slippage tolerance exceeded”
- Increase slippage for volatile tokens
- Try smaller amounts
Production Readiness
Before production use:- Test all operations you plan to use
- Verify error handling
- Test with your expected token types
- Monitor transaction success rates
- Set appropriate slippage (1-3% typical)
- Ensure adequate SOL for fees