Overview
- X users given scores based on how accurately their posts predict the future.
- Posts are matched to prediction market positions
- Users can copytrade X users based off of their tweets.
- Creators are rewarded for accurately predicting through stablecoin micropayments
Inspiration
Autopilot lets you copy-trade major investors and politicians, like Jim Cramer or members of Congress. But you can only copy what they officially hold, not what they say out loud. And the people saying the most out loud are on X.
Sports X is full of people posting "LOCK OF THE DAY" with no record of how those locks turned out. Some of them are genuinely good. Most aren't. There's no way to tell, and no way to act on the good ones without manually placing every bet yourself.
Enter coPAYMe
What it does
coPAYMe lives as both a chrome extension and a website, with auth through X.
When you view an X profile, the chrome extension populates a score badge under their username, and this score (0-100) signifies how accurately their past posts have corresponded to successful prediction market positions.
Click on their score, and a popup allows you to “watch” users, which allows you to see your simulated profit/loss if you started copytrading that user’s tweets at that moment. Watching is how you test someone before trusting them with real money. Each new pick they post becomes a $1 paper trade for you, so you see how following them would have gone, risk-free.
Another button “copytrade” automatically places predictions for you upon any new tweet from the user you are copying.
Additionally, we have a button to access creator rewards: Once a day, 0.7% of the profit from every winning copy trade goes to the creator who made the pick. They sign in with X, connect any wallet, opt in, and cash out real USDC on Arc.
We’ve implemented scoring that can't be farmed. Points depend on the odds when the pick was made. Calling a 97% favorite earns almost nothing; calling an upset earns a lot. You can't build a great score by posting obvious picks.
How we built it
It's a TypeScript monorepo of small services sharing one Supabase Postgres database:
Scout. Pulls new posts from tracked accounts, uses an Grok to extract the pick, and matches it to a Gemini Predictions market. It prices each pick at tweet time from Gemini's 5-minute price history.
Scoring API. Records picks, scores creators by odds, and serves the leaderboard and profiles.
Trading service. When a pick comes in, it creates watch and copy trades for every follower. Each follower's trade is reserved in the database before any order goes out, so a retried request can never place a second real order. A background sync settles trades when markets resolve. The service places trades on Gemini Prediction market through API trading.
On-chain service. Runs on Circle's Arc testnet with Circle Developer-Controlled Wallets. A platform treasury wallet pays creators. Rewards accrue to an earnings ledger and settle on-chain as one USDC transfer when the creator cashes out. The daily revenue share runs as a single database transaction, so each trade is charged exactly once and the payout can only run once per day.
Chrome extension (WXT + React). Injects badges and popovers into X and shares its sign-in with the website, so you log in once.
Website (Next.js). X OAuth sign-in, wallet connect, leaderboard, portfolio, rewards, and an admin page for the daily payout.
Challenges we ran into
Turning tweets into bets. People write "Cal -17.5", "Colorado ML" or "over 138.5", while a single game on Gemini can have a dozen contracts ("wins by more than 14.5", "17.5", "21.5"…). Getting Grok to pull out the exact pick, and then matching it to the right contract and side, took a lot of iteration.
Accomplishments that we're proud of
Creating the whole cycle from tweet to a payout is an accomplishment we are proud of. When a creator posts "Cal −17.5", our scout picks it up, Grok works out what the bet actually is, and it's matched to the exact contract among 1,900+ live Gemini markets. It's priced at the moment it was tweeted using Gemini's 5-minute price history. Every follower gets a trade at that price automatically. When the game resolves, the trades settle against the real result and the creator's score updates. A daily payout then credits the creator 0.7% of their followers' winnings, and the creator cashes out real USDC from a Circle developer-controlled wallet on Arc.
What we learned
When money moves, every step has to be safe to run twice. We learned this the hard way. During testing, a creator's cash-out hung for over 20 seconds and came back with an error. It looked like it had failed, but the USDC had already arrived on Arc, only our database call had timed out. If clicking again had sent another transfer, we'd have paid that creator twice. That changed how we built everything that touches money. Before the trading service sends a copy order to Gemini, it first reserves that follower's trade in the database. Postgres only accepts one reservation per follower per pick, so a retried request finds the existing one and stops instead of placing a second order. The daily payout works the same way. Each trade it pays on is recorded under a unique key, so it can never be paid twice, and the date has a unique key too, so the payout can only run once a day. The whole run is a single transaction, so it either completes fully or leaves no trace.
What's next for coPAYMe
Live copy orders on Gemini are already built. Next is letting users opt in with their own limits: a maximum per pick, a daily cap, and stopping copies automatically when a creator's score drops. The pipeline itself isn't specific to sports either: read a prediction, match it to a market, price it at that moment, score it. Gemini already lists markets on elections, Fed decisions, crypto and the economy. Every confident take on X could become a priced, scored pick you can copy.
Built With
- arc
- circle
- gemini
- grok
- next
- npm
- postgress
- react
- tailwind
- typescript