Skip to content

DhanteyUD/Gateway_Gauntlet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

113 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⚡ Gateway Gauntlet

Master Solana Transaction Optimization Through Interactive Gamified Learning

Indie.fun Hackathon Solana Next.js

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.


Screenshot 2025-12-13 at 2 11 28 AM

🎯 The Problem

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.


✨ Features

🎮 Interactive Learning Experience

  • 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

⚡ Sanctum Gateway Education

  • 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

📊 Performance Tracking

  • 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

🕹️ How to Play

1. Choose Your Strategy

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 ⭐⭐ ⭐⭐⭐

2. Monitor Network Conditions

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

3. Send Transactions & Learn

  • 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

4. Optimize Your Score

Points are awarded based on multiple factors:

  • Success Bonus - +100 points 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 - -5 points (small penalty encourages learning)

Pro Tip: The highest scores come from matching the right strategy to network conditions!


🛠️ Technology Stack

Frontend

  • Next.js
  • React
  • TypeScript
  • Tailwind CSS

Solana Integration

  • Solana Web3.js
  • Wallet Adapter
  • Sanctum Gateway

UI Components

  • Lucide Icons
  • Poppins Font

📦 Getting Started

Prerequisites

Installation

# 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.local

Environment Setup

Create 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

Development

# Start the development server
npm run dev

# Open http://localhost:3000 in your browser

Production Build

# Create optimized production build
npm run build

# Start production server
npm start

🎓 What You'll Learn

By playing Gateway Gauntlet, you'll gain practical understanding of:

  1. Transaction Delivery Methods - When to use RPC vs Jito bundles
  2. Cost Optimization - Balancing fees with reliability requirements
  3. Network Congestion - How to adapt strategies to changing conditions
  4. Fallback Mechanisms - Why redundancy matters for critical transactions
  5. Gateway Features - Leveraging Sanctum Gateway's advanced capabilities

🤝 Contributing

Contributions are welcome! Whether it's bug fixes, new features, or documentation improvements:

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

📝 License

This project is licensed under the MIT License - see the LICENSE file for details.


🔗 Links & Resources


👏 Acknowledgments

  • 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

📧 Contact

DhanteyUD - @DhanteyUD

Project Link: https://github.com/DhanteyUD/Gateway_Gauntlet


Built with ❤️ for the Solana developer community

Making blockchain transaction optimization accessible through gamification

⭐ Star this repo if you find it useful!

Powered by Sanctum Gateway

About

A Solana transaction simulator game that demonstrates the power of Sanctum Gateway

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors