Hi everyone,
I recently open-sourced a project I’ve been building: xchain-dex-indexer, a framework for indexing DEX liquidity pools across EVM and Substrate blockchains, built on Subsquid SDK.
The core idea
Most DEX subgraphs are built for a single protocol on a single chain. xchain-dex-indexer is designed to index multiple chains in a single codebase — each chain gets its own database, migrations, and optional schema extensions, all sharing a common core engine.
This makes it straightforward to maintain consistent data across parachains and extend to new chains without rewriting the indexing logic.
Key features
- Multi-chain architecture: multiple parachains, single codebase, isolated databases
- Intra-block pool snapshots ordered by transactionIndex
- Priority fee tracking per snapshot for MEV analysis
- Unified schema across Uniswap V2/V3/V4 forks and Substrate pallets
- Automatic data integrity verification against official subgraphs
Current state
Currently indexing Moonbeam, StellaSwap V2/V3/V4 and the Nimbus stDOT vault. The framework is designed to extend to Substrate parachains and additional EVM chains without rewriting the core engine. Contributions are welcome.
GitHub
Would love feedback from anyone working in the ecosystem ![]()