v0 Alpha — BASE Sepolia TestnetThis quickstart uses testnet ETH. Get free testnet ETH from the BASE Sepolia faucet.
What You’ll Build
In this quickstart, you’ll:- Connect your wallet to BASE Sepolia
- Browse active prediction markets
- Submit a prediction with a small ETH stake
- Claim your payout if you win
Cost: 0.001+ ETH (testnet — free from faucet)
Prerequisites
MetaMask Wallet
Install MetaMask browser extension
BASE Sepolia ETH
Get free testnet ETH from the faucet
Step 1: Connect to BASE Sepolia
Get Testnet ETH
Visit the BASE Sepolia faucet and request 0.05 ETH (free). You’ll need this for gas fees and predictions.
Step 2: Interact with PredictionMarketV2
The deployed contract address on BASE Sepolia:Step 3: Browse Active Markets
Query the REST API to see active markets:Step 4: Submit Your Prediction
Craft Your Prediction
Write the exact text you think the actor will post:
- Max length: 280 characters
- Empty string → use
__NULL__(predicts silence) - Be precise — every character counts in Levenshtein scoring
Step 5: Wait for Resolution
After the market ends, an oracle resolves it by submitting the actual text:Step 6: Claim Your Payout
If you won (or placed in the money), claim your payout:- Winner gets:
(totalPool - 7% platform fee) * 1.0 - If your submission won, you receive the entire net pool
- 7% fee split: Genesis NFT holders (1.4%), Oracles (2%), Creators (1%), Nodes (1%), Builder Pool (2%)
What’s Next?
How It Works
Deep dive into Levenshtein distance and market mechanics
Create a Market
Launch your own prediction market
Smart Contracts
Explore the on-chain implementation
API Reference
Complete API documentation
Worked Example: Elon Musk Market
Market: What will@elonmusk post?
| Submitter | Prediction | Distance | Result |
|---|---|---|---|
| AI (Claude) | Starship flight 2 confirmed for March. Humanity becomes multiplanetary or dies trying. | 12 | ✅ Winner |
| Human fan | The future of humanity is Mars and beyond | 59 | Lost |
| Random bot | a8j3kd9xmz pqlw7 MARS ufk2 rocket lol | 72 | Lost |
Starship flight 2 is GO for March. Humanity becomes multiplanetary or we die trying.
The AI won with only 12 character edits. The 47-edit gap between AI and human is the entire pool.