← Back to home

Klash AI

AI-powered trading battles on-chain. Learn crypto trading through epic duels. No risk, pure skill.

Problem Statement

Klash AI revolutionizes crypto trading education through AI-powered battle simulations on-chain.Core GameplayCreate Your Trader - Design a trading persona in 100 characters or lessAI Battle Simulation - Advanced LLM simulates realistic market scenarios and trading outcomesLearn Through Competition - Every loss teaches market dynamics without financial riskOn-Chain Forever - Battle results permanently recorded on Base and Flow blockchainsCharacter SystemStarter Character - Everyone begins with a default tier trader to learn the basicsGacha Mechanics - Spend credits to unlock powerful new trading charactersCharacter Tiers - S-tier (5% drop), A-tier (15% drop), B-tier (25% drop), no-luck (55%)$KLASH Consolation - Didn't get lucky? Earn $KLASH points for future rewardsSpecial Abilities - Each character has unique trading strategies and market advantagesCharacter ClassesS-Tier Legends: Whale Investor, Lucky Memecoin Investor, QuantA-Tier Experts: ETH Holder, Fundamental Analyst, Trader Cool-dereB-Tier Traders: Secretary, Onee-san, Tsundere Analyst, Influencer Follower Sister, Airdrop Farmer, Coin MaximalistUnique Strategies: Each class has special abilities (e.g., Whale Investor gets 2x leverage, Lucky Memecoin Investor has critical hit chances)Key FeaturesELO Rankings - Skill-based matchmaking for fair competitionNFT Characters - Your traders are ownable, tradeable digital assetsDynamic Market Conditions - AI generates bull runs, crashes, and black swan eventsZero-Risk Learning - Practice aggressive strategies without losing real moneyBattle Narratives - AI creates detailed stories explaining why strategies won or lostPay-to-Progress - Buy credits for gacha rolls, skill beats wallet size in battlesWhy It MattersTrading Education Reimagined - Learn expensive lessons through gamified battlesMass Market Ready - Simple onboarding, no crypto knowledge requiredReal Educational Value - Study winning strategies from thousands of on-chain battlesSocial & Viral - Share epic battles on Twitter, challenge friends directlyTL;DR: Pokemon battles meet crypto trading with anime-inspired gacha mechanics, where AI teaches you to trade through epic duels.

Solution

Mostly vibe-coded using Claude Code / CursorCore ArchitectureFrontend: React + TypeScript + Vite for lightning-fast performanceSmart Contracts: Deployed on Base Sepolia and Flow testnet for dual-chain supportAI Engine: GPT-4 class LLM for market simulation and narrative generationHybrid Storage: PostgreSQL for speed + blockchainPartner Technologies** Dynamic WalletImplementation: Complete embedded wallet solution for seamless authenticationFeatures Used:Embedded wallet auth for frictionless onboardingSocial logins (Google, Discord) for non-crypto nativesServer wallets for gasless transactionsBenefits:Users start playing in <10 seconds without wallet setupHandles all Web3 complexity behind the scenesPerfect for mass market gaming adoption** Base (Coinbase Developer Platform)CDP Tools Integrated:x402 Payments: Seamless credit purchases for gacha rolls with one-click checkoutCDP Data APIs: Real-time blockchain data for battle verification and character ownershipEvent APIs: Monitor on-chain battle recordings and NFT character mintsSQL API: Query historical battle data for leaderboards and statisticsImplementation Details:x402 handles API payment for credit purchasesData APIs track character NFT ownership on BaseEvent streaming for real-time battle updatesBenefits:Enterprise-grade infrastructure trusted by millionsSub-second transaction finality for instant gratificationDirect integration with Coinbase's 100M+ user baseImpact: Battle recording costs ~$0.001, credit purchases in 2 clicks** Flow BlockchainImplementation:Smart contracts deployed on Flow testnetRead/write battle data and character ownershipDeployment supporting EVMFlow Integration:Battle results stored on-chainCharacter NFTs minted on FlowCross-chain data synchronization with BaseBenefits:Consumer-first blockchain designed for gamingAccount abstraction for gasless user experiencesBuilt-in randomness for fair gacha mechanicsImpact: Ready for millions of users without sharding complexityTechnical Innovation ** Gacha & Monetization SystemCredit Purchase Flow: x402 (CDP) → Credits → Gacha RollsSmart Probability: On-chain verifiable randomness for fair drops$KLASH Economy: Failed rolls earn points for future rewardsCharacter Trading: Secondary market for rare S-tier characters** Architecture HighlightsMulti-Chain Strategy - Characters and battles on both Base and FlowProgressive Web3 - Start with email login, discover blockchain graduallyGas Abstraction - Dynamic + CDP enable playing without holding crypto** Performance MetricsBattle Generation: <2 seconds including AI simulationGacha Roll: Instant with on-chain verificationTransaction Cost: $0.001 on Base, gasless option on FlowOnboarding Time: 30 seconds from landing to first battleMobile Optimized: 100% responsive, works on any device** Hackathon AlignmentCDP Maximum Integration: Uses ALL 4 CDP tools (x402, Data APIs, Event API, SQL API)Flow Killer App: Consumer gaming with mass market appeal and on-chain deploymentDynamic Triple Crown: Qualifies for Financial (trading education), Consumer (gacha gaming), and AI (LLM battles) prizesProduction Ready: Fully deployed on Base Sepolia and Flow testnet - not a demo

Hackathon

ETHGlobal New York 2025

2025

Prizes

  • 🏆

    Flow Builder Pool Prize

    Flow

Contributors