Haki is a trusless protocol for both hyper-local niche prediction markets and global forecasting.
Haki is a decentralized protocol designed to turn collective foresight into a social tool. Rather than just a platform for high-stakes betting, Haki scales to fit any community, enabling users to tokenize sentiment and coordinate on everything from global events to hyper-local decisions.
The platform transforms how communities interact by offering:
Social Coordination: It moves beyond finance, allowing groups to settle debates—like choosing which anime to watch next—through skin-in-the-game participation.
Dynamic Community Feedback: It serves as a real-time polling engine for products, where valuable feedback is incentivized and verified.
Sovereign Identity: Every market becomes its own branded asset. Once a prediction is settled, the creator receives a digital "Certificate of Truth." This isn't just a trophy; it acts as a programmable key to unlock exclusive perks, such as early access to content or specialized community roles.
Accessible Participation: It removes the typical barriers of decentralized tech, offering a fast, gasless experience that feels like a modern social app rather than a complex trading floor.
By bridging the gap between niche social groups and global forecasting, Haki provides a space where any community can harness its collective intelligence to make better decisions and build a verifiable reputation.
Haki was built to be a high-performance, social-first prediction protocol. We focused on removing the friction of traditional DeFi by moving heavy computation off-chain while anchoring truth and identity on-chain.
The Tech Stack: Smart Contracts: Solidity (OpenZeppelin, ENS Name Wrapper) Frontend: Next.js 14, Viem, Wagmi, Tailwind CSS Infrastructure: Yellow Network (State Channels), Kleros (Arbitration) Identity: ENS (Name Wrapper & Subdomains) Data Handling: Supabase DB, Merkle Trees for trustless reward dispersal
Core Integrations & Architecture Yellow Network & Session Keys (Performance) We integrated Yellow Network’s state channels to solve the "gas problem." By leveraging a hybrid architecture with a backend liquidity buffer, Haki enables instant, gasless trading. To make this truly seamless, we implemented Session Keys. This allows users to authorize a temporary, restricted permission for the session, enabling them to place trades and interact with markets without a wallet popup for every single action. This combination allows our hyper-local markets to feel like a modern social app rather than a slow, expensive blockchain transaction.
ENS (Sovereign Identity) We used the ENS Name Wrapper to give every market a human-readable identity (e.g., anime-night.haki.eth). In a powerful architectural move, the market contract acts as the manager of the subdomain. Upon resolution, the contract burns specific "Fuses" to permanently lock the market outcome into the NFT metadata. This "Certified Truth" NFT is then trustlessly transferred to the creator, turning a settled bet into a programmable credential for gating or reputation.
The Guardrail: A Universal Challenge Mechanism
Regardless of the resolution method chosen, every market on Haki includes a mandatory "Challenge Window." This period allows any participant to contest a proposed outcome by posting a bond, ensuring that no single actor—whether a creator or an automated oracle—has the final, unvetted word. This optimistic approach guarantees that every resolution is subject to community oversight before funds are dispersed.
Three Tiers of Resolution
Built to scale with the complexity and trust level of each market, our modular system offers:
Creator-Led: Best for Hyper-Local & Private Markets. Ideal for high-trust social circles, such as a group of friends deciding which anime to watch next or a small team setting internal project goals. It’s the most efficient, low-friction path for niche coordination.
AI-Oracle: Best for Global & Data-Driven Events. Optimized for markets with verifiable public data—like professional sports outcomes, NFT floor prices, or weather events. This tier enables near-instant, automated settlement by fetching real-world data without human bias.
Optimistic: Best for High-Stakes & Subjective Markets. Designed for complex community forecasts where the outcome may be nuanced or highly contested. If a proposed result is challenged, it escalates to Kleros (placeholder in contract, not fully integrated), acting as our decentralized "Supreme Court," where a jury of crowd-sourced arbiters provides a final, binding ruling.
The "Merkle Hack" To keep rewards scalable, we don’t update every user's balance on-chain. Instead, we anchor a Merkle Root of the final market state. During the trading phase, we store every user’s Session Key signature and their unique Channel ID for each trade off-chain.
Upon resolution, we deterministically construct a Merkle Tree where each leaf consists of the user’s wallet address, the option they backed, their total shares, and that specific Channel ID. This Merkle Root is then pushed on-chain alongside the market outcome. Because this root is inherently linked to the off-chain signatures and channel data, it is also challengeable during the optimistic window. Users then submit a Merkle Proof to claim their winnings, allowing Haki to support thousands of participants in a single market without exorbitant gas costs or compromising on trust.

