Inspiration

We wanted to create a platform that made interacting with the blockchain feel fun, fast, and seamless.

What it does

BasePredict is a Base-native prediction market strategy platform that uses AI to detect mispricing in Polymarket markets and turn them into executable strategies on Base Sepolia.

Users connect a Coinbase Smart Wallet on Base funded with USDC and browse live Polymarket markets directly in the UI. Behind the scenes, BasePredict continuously pulls markets from Polymarket’s Gamma and CLOB APIs, enriches them with real-time prices, and runs them through an OpenAI-powered analysis engine.

For each market, BasePredict estimates an AI “fair price,” compares it to current odds, and calculates an edge in basis points. Markets that cross a configurable edge threshold are surfaced as anomalies.

From there, users can:

• Combine signals into multi-market strategies

• Use pre-built templates (Conservative, Balanced, Aggressive) or define custom allocations

• Run quick Monte Carlo backtests for projected returns and basic risk metrics

When a strategy looks good, it can be executed via Coinbase Smart Wallet, with optional paymaster-backed gasless transactions. A Solidity StrategyRegistry contract on Base Sepolia records onchain strategy metadata (user, markets, allocations, edge), while the frontend portfolio dashboard tracks strategies, execution history, and PnL.

How we built it

• Frontend: React + TypeScript with Tailwind and shadcn/ui, using TanStack Query for server state and Wagmi/OnchainKit for Coinbase Smart Wallet integration. The UI provides topic discovery, signal cards, a multi-market strategy builder with templates (Conservative / Balanced / Aggressive), a Monte Carlo backtesting panel, and a portfolio dashboard for PnL and execution history.

• Backend: Express.js + TypeScript exposing REST endpoints for topics, signals, and strategies. It uses Drizzle ORM and a Neon-backed PostgreSQL database to store topics, subscriptions, AI signals, and user strategies, with shared types/schemas in a common module.

• Data/AI layer: A Polymarket service queries Gamma + CLOB APIs to fetch active markets and live prices. An AI service sends curated markets to OpenAI, receives fair-price and side recommendations, and computes side-aware edge in basis points. Markets above a threshold are promoted to tradeable signals.

• Onchain layer (Base): Users connect via Coinbase Smart Wallet (ERC-4337), with optional Paymaster support for gasless execution. A Solidity StrategyRegistry contract on Base Sepolia records onchain strategy metadata (user address, topic, market IDs, allocations, edge), providing a verifiable link between AI-generated strategies and onchain activity.

Challenges we ran into

Since time was a limiting factor, we had to drop certain features that we were originally going to implement.

Accomplishments that we're proud of

We were proud of creating a fun and functional project that matched our vision at the start of the hackathon.

What we learned

We learned the importance of time management. Towards the end, we were on a time crunch to get the last few parts of our project done.

What's next for BasePredict

We will have to improve the UI and some back end features.

Built With

  • api
  • base
  • clob
  • coinbase
  • coinbase-smart-wallet-(erc-4337)
  • css
  • drizzle
  • drizzle-orm-?-backend:-node.js
  • erc-4337
  • express.js
  • express.js-?-database:-postgresql-(neon)-?-ai-/-data-providers:-openai-api
  • gamma
  • javascript
  • neon
  • node.js
  • onchainkit
  • onchainkit-?-tooling-/-other:-zod-(validation)
  • openai
  • orm
  • paymaster
  • paymaster-(gasless-tx)
  • polymarket
  • polymarket-clob-api-?-blockchain-/-wallets:-base-sepolia
  • polymarket-gamma-api
  • postgresql
  • query
  • react
  • recharts
  • recharts-?-state-&-data:-tanstack-query
  • sepolia
  • shadcn/ui
  • smart
  • solidity
  • solidity-?-frontend:-react-18
  • sql
  • tailwind
  • tailwind-css
  • tanstack
  • typescript
  • wagmi
  • wallet
  • wouter
  • zod
Share this project:

Updates