DEV Community

Cover image for How I Tracked Polymarket "Whales" On-Chain to Turn $1,000 into $93,000 (And Built a Free Tool For It)
yallashoot
yallashoot

Posted on

How I Tracked Polymarket "Whales" On-Chain to Turn $1,000 into $93,000 (And Built a Free Tool For It)

How I Tracked Polymarket "Whales" On-Chain to Turn $1,000 into $93,000 (And Built a Free Tool For It)If you’re trading on Polymarket based on Twitter hype or mainstream news, you are the exit liquidity. Plain and simple.A few months ago, I was bleeding cash trying to predict sports matches and political outcomes. I’d read a solid breakdown, make what seemed like a highly logical bet, and watch the market odds shift in the exact opposite direction minutes later.It took me a few weeks of losing to accept a harsh reality: Prediction markets don't move on public news. They move on what the "Whales" (large account holders) know before the news drops.But Polymarket has one major vulnerability for these massive players: everything is settled on Polygon. Every single transaction, position, and wallet balance is public ledger data. I realized that if I couldn't beat them, I just needed to watch them in real-time.The On-Chain ArbitrageThe standard Polymarket web interface is sleek, but it hides the most critical signal: sudden, heavy order flow from smart wallets.It won't ping your phone when a wallet with a 75% win rate quietly drops $22,666 on the Boston Red Sox @ 51% odds, or when a user named Wordy-Littleneck dumps $12,000 on the Cleveland Guardians. By the time you notice the odds moving from 51% to 65% on the UI, the value is already squeezed out.So, I stopped trading blindly, closed the web app, and spun up a quick Node.js script to listen to the blockchain events.Coding the On-Chain TrackerI targeted the Polymarket smart contracts on the Polygon network. The goal was to filter out the thousands of $5 and $10 retail bets and only trigger an alert when a single wallet executed an order larger than $10,000.Here is a simplified, runnable snippet of how I set up the event listener using ethers.js:const { ethers } = require("ethers");

// Connect to Polygon RPC (use a reliable provider node)
const provider = new ethers.providers.JsonRpcProvider("https://polygon-rpc.com");

// Polymarket CTF (Conditional Token Framework) Contract Address
const contractAddress = "0x4b706c4f06877994fa51f08d0e72bd583348caec"; // Example target
const abi = [
"event MarketOrder(address indexed user, address indexed market, uint256 amount, uint8 outcome)"
];

const contract = new ethers.Contract(contractAddress, abi, provider);

console.log("Listening for whale activity on Polymarket...");

contract.on("MarketOrder", (user, market, amount, outcome) => {
const formattedAmount = parseFloat(ethers.utils.formatEther(amount));

// Set our whale threshold to $10,000 USD equivalent
if (formattedAmount >= 10000) {
    console.log(`\n🚨 WHALE DETECTED 🚨`);
    console.log(`Wallet: ${user}`);
    console.log(`Market Contract: ${market}`);
    console.log(`Amount: $${formattedAmount.toLocaleString()}`);
    console.log(`Outcome Selected: ${outcome}`);

    // Here, I integrated a webhook to ping my private Telegram channel
    sendTelegramAlert(user, market, formattedAmount, outcome);
}
Enter fullscreen mode Exit fullscreen mode

});
Flipping $1,000 to $93,000 (Copy-Trading)Once the alerts were active on my phone, patterns emerged instantly.I started seeing specific repeating wallets executing trades with clinical precision. For example:A wallet named Wordy-Littleneck dropped $12,000 on the Cleveland Guardians vs. New York Yankees.The same wallet dropped $22,666 on the Boston Red Sox vs. Tampa Bay Rays.Another sharp wallet, Sympathetic-Dead, bought the Under 9.5 line for $11,608 in the Astros vs. Angels game.I didn't research the pitching lineups, the weather, or the sports analytics. I simply followed the smart money. When these specific addresses dropped $10k+, I mirrored their position with my modest capital.Within 90 days of pure, emotionless copy-trading based on raw on-chain volume spikes, my balance went from $1,000 to just over $93,000.Turning the Script into an App: PolyAlertHubRunning a local Node script on my laptop 24/7 was not sustainable. I was missing massive middle-of-the-night trades, and my developer friends who I shared the alerts with wanted a visual dashboard.To solve this, I migrated the backend listeners to a scalable cloud architecture and built a native Telegram Mini-App interface. I call it PolyAlertHub.Instead of wrangling with raw contract data and block explorers, I packaged the logic into easy-to-use Telegram commands:/whales β€” Streams the biggest live transactions happening right now./trending β€” Flags markets experiencing sudden, abnormal volume spikes before they trend on the main site./alert β€” Sets custom percentage targets and alerts you when they cross./follow β€” Lets you input a specific wallet address and get pinged whenever they make a trade./app β€” Opens a clean, responsive mini-app dashboard directly inside Telegram.Try it yourselfI wanted to make this data accessible to everyone, not just institutional traders with private scrapers.You can check out the live dashboard on our web app: polyalerthub.comOr, if you want direct, instant alerts on your phone, jump straight into our Telegram bot: @polyalerthubotStop trading blind. Let the whales do the hard work, and just follow the data.Have any questions about the smart contract event filters or how we parse the metadata? Drop a comment below!

Top comments (0)