/PROJECT 05 · WEB3 FRONTEND (FREELANCE CLIENT)
Prediction Market Trading App (Web3)
The trading website for DeFiPredict, a YES/NO prediction market on BNB Smart Chain where people buy shares on questions like "Will BTC close above a price by Friday?" and winners are paid automatically by a smart contract when the answer is known. I was the frontend developer on this freelance project, building the whole Next.js app that traders and operators used: the market browser, the trade panel with wallet connection and token approvals, the portfolio and leaderboards, and the admin console for creating, reviewing and settling markets. The app talks to the smart contract for anything involving money (prices, balances, trades and payouts) and to the project's API for fast lists, history and live updates. It went live at defipredict.io in early 2026 with the contract deployed on BNB Smart Chain mainnet; the client has since taken the site offline.

/GOAL
Make trading on a blockchain feel as clear and fast as a normal website, without ever hiding what a transaction will do.
/STACK
Technologies used
/ARCHITECTURE
How it is built
- Market browser — Next.js pages + TanStack QueryMarkets grouped by event and category, with search, sorting and grid or list views, loaded from the project's API and kept fresh by live updates.
- Trade panel — wagmi, viem and RainbowKitConnect a wallet, approve the token, buy or sell YES or NO shares, and follow each transaction from signing to confirmation, with plain-English errors.
- Portfolio and leaderboards — Dashboard pages and chartsPositions, profit and loss, trade history, claimable winnings and leaderboards by volume, profit or number of trades.
- Admin console — Role-aware admin pagesCreate markets, review and approve them, build event pages, settle results once the deadline passes, and manage who holds which role, without touching a terminal.
- Live updates — WebSocket + targeted cache refreshTrades and market changes from the blockchain refresh only the affected parts of the screen.
/SCOPE
What was delivered
- Market browser with event groups, categories, search, sorting and grid or list views
- Trade panel for buying and selling YES/NO shares with wallet connection and token approvals
- Transaction feedback at every step: waiting, approved, confirmed, with explorer links
- Portfolio with positions, profit and loss, trade history and claimable winnings
- Leaderboards and analytics over 24 hours to all time
- Admin console to create, review, modify and settle markets and manage contract roles
- Live updates over WebSocket with targeted refreshes instead of full reloads
- Green for YES, red for NO, dark and light themes, and a consistent design system
- 34 routes and about 105 React components across public, dashboard and admin areas
/NOTES
Scope boundaries
A freelance project where my role was frontend developer: the smart contract and the backend indexer and API were part of the wider project, and this page covers the web app I built. The site was live at defipredict.io in early 2026 and has since been taken offline by the client; the link above goes to the deployed contract on BscScan. The source code is private. The screenshots show the original frontend running locally against sample data, because the live backend is no longer available; the numbers in them are illustrative, not real trading activity.
/GALLERY
Screens



















/WRITING_ON_THIS_STACK
Articles on the tools behind Prediction Market Trading App (Web3)
/MORE_WORK