# Xchain-dex-indexer — open source cross-chain DEX indexer

**URL:** <https://forum.polkadot.network/t/xchain-dex-indexer-open-source-cross-chain-dex-indexer/17367>\
**Category:** Ecosystem\
**Created:** [March 22, 2026, 10:43am UTC](https://forum.polkadot.network/t/xchain-dex-indexer-open-source-cross-chain-dex-indexer/17367 "2026-03-22T10:43:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![aleGiannini](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.polkadot.network/alegiannini/32/11014_2.png) [@aleGiannini](https://forum.polkadot.network/u/aleGiannini)\
**Post date:** [March 22, 2026, 10:43am UTC](https://forum.polkadot.network/t/xchain-dex-indexer-open-source-cross-chain-dex-indexer/17367/1 "2026-03-22T10:43:09Z")

</div>

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**

> **[GitHub - xchain-mev-research/xchain-dex-indexer: High-granularity DEX indexer for EVM and Substrate...](https://github.com/xchain-mev-research/xchain-dex-indexer)**
>
> High-granularity DEX indexer for EVM and Substrate blockchains. Per-block and intra-block pool snapshots, priority fee tracking, unified V2/V3/V4 schema, XCM cross-chain asset registry. Built on Subsquid SDK.

Would love feedback from anyone working in the ecosystem 🙂
