Master Solana Transaction Optimization Through Interactive Gamified Learning
Gateway Gauntlet is an immersive educational game that teaches developers how to optimize Solana transactions using Sanctum Gateway. Learn real-world transaction delivery strategies through risk-free simulation and master the art of cost optimization, speed, and reliability on Solana.
Building on Solana requires deep understanding of transaction delivery strategies, but developers face significant challenges:
- Complex Learning Curve - Transaction optimization concepts are difficult to grasp from documentation alone
- Expensive Experimentation - Testing strategies with real transactions incurs costs and risks
- Dynamic Network Conditions - Constantly changing congestion requires adaptive approaches
- Feature Discovery - Advanced Gateway features like Jito+RPC fallback aren't immediately intuitive
Gateway Gauntlet provides a risk-free, engaging environment where you can master Solana transaction optimization without spending SOL or dealing with failed transactions.
- 4 Strategic Approaches - Safe, Balanced, Fast, and Cheap transaction modes
- Real-Time Network Simulation - Dynamic congestion levels that mirror mainnet conditions
- Instant Feedback - Learn from every transaction attempt
- Progressive Difficulty - Level up as your understanding deepens
- Production Strategy Simulation - Learn techniques used in real dApps
- Cost vs Speed Trade-offs - Understand when to use Jito bundles vs RPC
- Multi-Method Delivery - Experience RPC, Jito bundles, and Sanctum Sender
- Intelligent Routing - Grasp load balancing and fallback mechanisms
- Detailed Analytics - Track success rates, costs, and latency
- Strategy Comparison - See which approaches work best in different conditions
- Scoring System - Compete against yourself and optimize your decision-making
- Transaction History - Review past transactions to identify patterns
Each strategy has unique characteristics suited for different scenarios:
| Strategy | Icon | Use Case | Cost | Speed | Reliability |
|---|---|---|---|---|---|
| Safe | 🛡️ | Mission-critical transactions | Medium | Medium | ⭐⭐⭐⭐⭐ |
| Balanced | ⚖️ | General-purpose usage | Medium | Medium | ⭐⭐⭐⭐ |
| Fast | ⚡ | Time-sensitive operations | High | ⭐⭐⭐⭐⭐ | ⭐⭐⭐ |
| Cheap | 💰 | Cost-sensitive, non-urgent | Very Low | ⭐⭐ | ⭐⭐⭐ |
Network congestion directly impacts transaction success:
- 🟢 Low Congestion - All strategies work well
- 🟡 Medium Congestion - Strategy choice begins to matter
- 🟠 High Congestion - Requires optimization knowledge
- 🔴 Extreme Congestion - Only smart strategies succeed
- Select a strategy based on current network conditions
- Observe transaction outcomes in real-time
- Analyze cost, latency, and success metrics
- Build intuition through the live transaction feed
Points are awarded based on multiple factors:
- Success Bonus -
+100points per confirmed transaction - Cost Efficiency - Bonus points for cheaper successful transactions
- Speed Performance - Rewards for low-latency delivery
- Level Multiplier - Your score potential increases with experience
- Failure Penalty -
-5points (small penalty encourages learning)
Pro Tip: The highest scores come from matching the right strategy to network conditions!
- Node.js 18+ and npm/yarn
- A Sanctum Gateway API key (get one at gateway.sanctum.so)
# Clone the repository
git clone https://github.com/DhanteyUD/Gateway_Gauntlet.git
cd Gateway_Gauntlet
# Install dependencies
npm install
# or
yarn install
# Configure environment variables
cp .env.local.example .env.localCreate a .env.local file with:
NEXT_PUBLIC_SANCTUM_API_KEY=your_api_key_here
NEXT_PUBLIC_SOLANA_RPC_URL=https://api.devnet.solana.com
NEXT_PUBLIC_GATEWAY_HOST_ADDRESS=your_solana_public_key# Start the development server
npm run dev
# Open http://localhost:3000 in your browser# Create optimized production build
npm run build
# Start production server
npm startBy playing Gateway Gauntlet, you'll gain practical understanding of:
- Transaction Delivery Methods - When to use RPC vs Jito bundles
- Cost Optimization - Balancing fees with reliability requirements
- Network Congestion - How to adapt strategies to changing conditions
- Fallback Mechanisms - Why redundancy matters for critical transactions
- Gateway Features - Leveraging Sanctum Gateway's advanced capabilities
Contributions are welcome! Whether it's bug fixes, new features, or documentation improvements:
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Live Demo - Gateway Gauntlet
- Sanctum Gateway - gateway.sanctum.so
- Hackathon Submission - View Submission
- Sanctum for providing Gateway infrastructure and hosting the hackathon
- Solana Foundation for building an incredible blockchain ecosystem
- The Solana Community for continuous innovation and support
DhanteyUD - @DhanteyUD
Project Link: https://github.com/DhanteyUD/Gateway_Gauntlet