Skip to content

Latest commit

ย 

History

113 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

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

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages