A high-stakes, blockchain-powered survival game where only the last monarch standing claims the throneโand the treasure.
SolThrone is a decentralized, on-chain game of economic warfare built on Solana. Players compete to become the Reigning Monarch by outbidding each other in a high-stakes auction. The last player holding the throne when the timer expires wins the entire jackpot.
- ๐ Seize the Throne: Pay 30% more than the current price to become king
- ๐ฐ Instant ROI: Get 15% profit when someone usurps you
- โฐ Anti-Snipe Protection: Timer extends when a bid comes in the final 5 minutes
- ๐ฏ Winner Takes All: Last monarch claims the entire jackpot when time expires
- โก Lightning Fast: Built on Solana for sub-second transactions
| King's View (Royal Atmosphere) | Challenger's View (The Forge) |
|---|---|
![]() |
![]() |
- Cinematic background with gradient effects and noise textures
- Real-time throne visualization with 3D animations
- Framer Motion-powered smooth transitions
- Responsive design for mobile and desktop
- Support for Phantom, Solflare, and all major Solana wallets
- Secure wallet connection via
@solana/wallet-adapter - Real-time balance and transaction updates
- Protocol Bounty: Real-time jackpot tracker
- Reigning Monarch: Current king's wallet address
- Session Timer: Countdown with hours, minutes, and seconds
- Activity Log: Transaction history with timestamps and explorer links
- Anti-Snipe Mechanism: Timer resets to 5 minutes if bid comes in late
- Instant Payouts: Previous king receives 115% of their bid immediately
- Creator Fee: 5% platform fee on every transaction
- Jackpot Accumulation: Remaining funds flow into the grand prize
- Auto-Reset: Game automatically restarts after jackpot is claimed
Next.js 16 (App Router)
โโโ React 19.2
โโโ TypeScript
โโโ Tailwind CSS
โโโ Framer Motion (Animations)
โโโ Solana Wallet Adapter
โโโ Anchor Client
Anchor Framework (Rust)
โโโ On-Chain State Management
โโโ PDA (Program Derived Address) for Game State
โโโ Safe Math with Overflow Checks
solthrone/
โโโ client/ # Next.js Frontend
โ โโโ app/ # App Router pages
โ โโโ components/ # React components
โ โ โโโ game/ # Game-specific components
โ โ โโโ layout/ # Layout components (Navbar, etc.)
โ โโโ hooks/ # Custom React hooks
โ โโโ context/ # Wallet context provider
โ โโโ idl/ # Anchor IDL for contract interaction
โ
โโโ server/ # Solana Smart Contract
โโโ programs/ # Rust program source
โโโ tests/ # Anchor tests
โโโ target/ # Compiled programs
- Node.js 18+ and pnpm
- Solana CLI
- Anchor CLI (for smart contract development)
- A Solana wallet with devnet SOL
Click the wallet button in the top-right corner and connect your Solana wallet.
If the game hasn't been initialized, click "INITIALIZE PROTOCOL" to set up the game state.
Click "SEIZE THRONE" and pay the required SOL to become the king. The price increases by 30% with each bid.
- Defend: Hold your position and pray no one outbids you
- Exit Strategy: Get usurped for an instant 15% ROI
If you're the king when the timer hits zero, click "CLAIM JACKPOT" to withdraw the entire prize pool.
| Scenario | Your Action | Outcome |
|---|---|---|
| Quick Exit | Get usurped immediately | +15% ROI (instant profit) |
| Hold & Lose | Get usurped after holding | +15% ROI (instant profit) |
| Win Jackpot | Last king standing | +Entire Jackpot (potentially 100x+) |
Contributions are welcome! Please follow these steps:
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- GitHub: ANAS727189/SolThrone
This is an experimental project built for educational and entertainment purposes. Smart contracts involve financial risk. Always do your own research and never invest more than you can afford to lose. This game is deployed on Solana Devnet for testing purposes.

