An indexer for Polymarket on-chain events, built with Envio HyperIndex. Created as a reference migration from the Polymarket Subgraph.
Note: This indexer is a work-in-progress and is meant as a reference implementation only. Do not use in production without thorough testing.
The GraphQL API exposes Polymarket wallet activity, order fills, market lifecycle events, liquidity provision, and prediction market mechanics on Polygon. You can use this as a foundation for building Polymarket analytics tools, trade trackers, and market dashboards.
Transfer(USDC) - USDC transfers between walletsProxyCreation(SafeProxyFactory) - new Polymarket wallet creationTransactionRelayed(RelayHub) - relayed transactionsGameCreated,GameSettled,GameEmergencySettled,GameCanceled,GamePaused,GameUnpaused(UMA Sports Oracle) - sports market lifecycleMarketCreated,MarketPaused,MarketUnpaused(UMA Sports Oracle) - market managementOrderFilled(Exchange) - order fillsConditionPreparation,PositionSplit,PositionsMerge,PayoutRedemption(ConditionalTokens) - prediction market mechanicsFPMMCreated,FPMMBuy,FPMMSell(FixedProductMarketMaker) - AMM activity
Polygon (chain ID 137)
- Node.js v22 or newer
- pnpm v8 or newer
- Docker Desktop
# Install dependencies
pnpm install
# Run locally (starts indexer + GraphQL API at http://localhost:8080)
pnpm devThe GraphQL Playground is available at http://localhost:8080. Local password: testing.
pnpm codegen- Wallet Subgraph
- Sports Oracle Subgraph
- Order Book Subgraph
- OI Subgraph
- FPMM Subgraph
- Activity Subgraph
- Fee Module Subgraph
- PNL Subgraph
- Envio HyperIndex - multichain indexing framework
- HyperSync - high-performance blockchain data retrieval
- Based on the Polymarket Subgraph
- Track Polymarket Trades with HyperSync - lightweight HyperSync script for Polymarket trade data
- Polymarket Whale Tracker - track large Polymarket positions with HyperSync
- Track Polymarket Trades blog post - step-by-step guide to building a Polymarket trade tracker with HyperSync