HIP-4 Explained: Prediction Markets on Hyperliquid
HIP-4 adds prediction markets to Hyperliquid's trading engine. Learn how it works technically — market types, settlement, and why the architecture matters.
HIP-4 in one sentence
HIP-4 is a Hyperliquid Improvement Proposal that adds fully on-chain prediction markets to the same matching engine that already handles $200B+ per month in perpetual futures volume.
That sentence contains the whole thesis. Prediction markets are not a sidecar product or a separate chain. They run on the exact same infrastructure as Hyperliquid’s perp and spot markets, which means they inherit all of the performance characteristics that made Hyperliquid the dominant on-chain derivatives exchange.
The architecture
To understand why HIP-4 matters, you need to understand what it’s built on.
Hyperliquid runs its own L1 blockchain with a custom consensus mechanism called HyperBFT. It’s not an Ethereum rollup or an app-chain on Cosmos. It’s a purpose-built chain optimized for one thing: matching orders fast.
The L1 processes 200,000+ orders per second with finality under one second. Every order, every fill, every settlement is a verifiable on-chain transaction. There’s no off-chain orderbook with on-chain settlement (like Polymarket). The orderbook itself is on-chain.
HIP-4 adds a new asset class to this engine: outcome tokens. These are prediction market shares that trade alongside perps and spot tokens on the same orderbook infrastructure.
Market types on HIP-4
HIP-4 supports three distinct market structures.
Binary markets
The simplest form. A yes/no question with two outcome tokens. “Will BTC close above $95k today?” generates a YES token and a NO token. YES + NO always equals $1.
On Hyperliquid’s testnet, binary markets use a pair index where the asset ID is 10000 + pairIndex. Each outcome token has its own spot orderbook. You can buy, sell, or short any side.
Multi-outcome markets
Questions with more than two possible answers. “What will Hypurr eat?” might have outcomes: Akami, Otoro, Canned Tuna, Wagyu, Ramen. Each outcome gets its own token. All outcome prices should sum to approximately $1 (arbitrage keeps this tight).
Multi-outcome markets are where HIP-4 gets interesting. They enable trading on subjective, cultural, and community-driven events that don’t map to any traditional financial instrument.
Recurring markets
This is HIP-4’s most novel feature. Recurring markets are binary price markets that automatically rotate on a schedule — every 15 minutes, every hour, or every day.
Think of “BTC > $95k” as a recurring daily market. Every day at midnight UTC, the current market resolves and a new one opens with a fresh strike price based on the current spot price. You don’t need to find a new market each day — the system handles rotation.
Technically, recurring markets are deployed with a schedule and a strike price formula. When the current period expires, the market resolves against the oracle price, payouts happen instantly, and the next period begins. It’s like having an options chain that manages itself.
How settlement works
Settlement on HIP-4 is atomic and instant. When a market resolves:
- An oracle or designated resolver submits the outcome on-chain
- The matching engine flips all positions to settled state
- Winning shares pay $1, losing shares pay $0
- USDC hits your balance in the same block
There’s no claim process, no delay, no manual step. The moment the outcome is determined, your balance updates. This is a meaningful improvement over Polymarket, where settlement involves waiting for UMA’s optimistic oracle and then manually claiming winnings.
For price-based markets (like “BTC > $95k”), the oracle price comes from Hyperliquid’s own spot and perp feeds — the same feeds that power their perpetual futures. No external oracle dependency, no Chainlink latency, no oracle manipulation risk beyond what already exists for their core perp markets.
Shared margin: the killer feature nobody talks about
Here’s the thing that most people miss about HIP-4, and it might be the most important technical detail.
On Hyperliquid, your collateral is unified. Your USDC balance backs your perp positions, your spot positions, and your prediction market positions simultaneously. This is called cross-margin, and it’s applied across asset classes.
Why does this matter?
On Polymarket, your prediction market capital is completely siloed. That $10,000 you deposited for election markets can’t be used as margin for anything else. It sits there until the market resolves.
On Hyperliquid with HIP-4, that same $10,000 could simultaneously:
- Back a 5x ETH perp position
- Collateralize your “BTC > $95k” prediction market position
- Serve as margin for a PURR/USDC spot position
Capital efficiency goes up dramatically. Professional traders and market makers care about this more than anything else. It’s the reason HIP-4 prediction markets will attract deeper liquidity than standalone prediction market platforms.
Agent-based signing: no popups
Hyperliquid uses an agent key system that eliminates the MetaMask popup on every trade. You approve an agent key once (stored in your browser session), and all subsequent orders are signed instantly without wallet interaction.
For prediction markets, this means 1-click trading. See a market you like, click buy, done. No confirmation popup, no waiting for wallet extension to load. It sounds minor, but it’s the difference between a trading experience and a bureaucratic one.
Purrdict is built on this. Every trade is one click. The agent key handles signing in the background.
The testnet right now
HIP-4 is live on Hyperliquid’s testnet. You can trade real markets with testnet USDC:
- “BTC > $95k” — recurring daily binary at 68 cents
- “What will Hypurr eat?” — multi-outcome with Akami leading at 42 cents
- “HL 100 meter dash” — Hypurr vs Usain Bolt, with Hypurr heavily favored at 77 cents
These aren’t hypothetical. You can open Purrdict, connect a testnet wallet, and place orders against them right now. The orderbooks are live, fills happen in under a second, and settlement is automatic.
What makes HIP-4 different from everything else
Let me put it bluntly. Every other prediction market platform is built as a standalone product with its own liquidity pool, its own settlement layer, and its own capital base.
HIP-4 prediction markets piggyback on the most liquid on-chain derivatives exchange in crypto. They get:
- Sub-second finality (not optimistic settlement)
- Shared margin with perps and spot
- Fully on-chain orderbook with verifiable fills
- The same matching engine that handles billions in volume
- Agent-based signing for instant trading
This isn’t incrementally better. It’s architecturally different.
The question isn’t whether on-chain prediction markets will grow — they will. The question is which platform captures that growth. HIP-4 has the strongest technical foundation of anything built so far.
Want to understand the broader context? Read what prediction markets are or see how Purrdict compares to Polymarket.