Hack the Wallet is an immersive blockchain-based game built on Starknet, blending conversational AI with retro pixel-art aesthetics. Challenge Joe, a cunning AI, to reclaim borrowed crypto through witty dialogue. With a Star Wars-inspired crawl, voice interaction, and a free 100-token airdrop, this game makes DeFi fun and accessible. Ready to outsmart the wallet? 🚀
Hack the Wallet is a Next.js-powered game where players connect their Starknet wallet to engage in a conversational challenge. The goal? Convince Joe, an AI opponent, to return borrowed cryptocurrency by building trust through clever arguments. The game features a retro pixelated UI, a cinematic Star Wars crawl intro, and blockchain integration for betting and rewards.
Key objectives:
- Create an engaging DeFi experience with gamified blockchain interactions.
- Combine conversational AI with voice input/output for accessibility.
- Offer a free airdrop to onboard new players seamlessly.
Built for the Sepolia testnet, the game supports wallet connections, on-chain transactions, and a trust-based scoring system. Whether you’re a blockchain enthusiast or a casual gamer, Hack the Wallet delivers a unique blend of strategy and style.
- Starknet Wallet Integration: Connect wallets like Argent X or Braavos to bet and win tokens.
- Conversational Gameplay: Outwit Joe using text or voice; win by raising his trust score.
- Pixel-Art Aesthetic: Retro design with Press Start 2P font and animated backgrounds.
- Star Wars Crawl: A cinematic intro that sets the sci-fi tone.
- Airdrop System: Mint 100 free tokens to try the game without spending.
- Voice Interaction: Speech recognition and text-to-speech for immersive gameplay.
- Non-Responsive UI: Fixed layout with pixel-perfect design (e.g.,
h-[700px],w-72). - On-Chain Rewards: Successful players view transactions on Sepolia Voyager.
Explore the game’s retro-futuristic vibe through these screenshots!
| Landing Page | Airdrop Page |
|---|---|
![]() |
![]() |
| Star Wars Crawl | Game Interface |
|---|---|
![]() |
![]() |
| Game Win | Transaction Confirmation |
|---|---|
![]() |
![]() |
- Frontend:
- Next.js (React framework)
- Tailwind CSS (styling)
- Framer Motion (animations)
- tw-animate-css (additional effects)
- Blockchain:
- Starknet (Layer 2 scaling)
- starknet-react/core (wallet and contract hooks)
- Fonts:
- Geist, Geist Mono
- Press Start 2P (pixel font)
- APIs:
- Gemini 1.5 Flash (conversational AI)
- Axios (backend communication)
- SpeechRecognition & SpeechSynthesis (voice features)
- Contract:
- Starknet contract for minting and transactions
- ABI for reading contract data
Run Hack the Wallet locally to join the fun.
- Node.js (v18 or higher)
- pnpm (recommended package manager)
- Starknet Wallet (e.g., Argent X or Braavos, set to Sepolia testnet)
- Git
To set up and run Hack the Wallet locally from the provided repository, follow these steps:
git clone https://github.com/Sahid-m/HackTheWallet.git
cd HackTheWallet
git pull origin mainWe recommend using npm with the --legacy-peer-deps flag to avoid dependency conflicts:
npm install --legacy-peer-depsStart the Next.js app locally:
npm run devVisit http://localhost:3000 to play the game.
Make sure your Starknet wallet (e.g., Argent X or Braavos) is installed and set to the Sepolia testnet.







