> For the complete documentation index, see [llms.txt](https://graphai-1.gitbook.io/graphai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://graphai-1.gitbook.io/graphai/graphai-platform/graphengine-closed-beta/graphai-lens-create-your-own-sub-graph/dex-lens.md).

# DEX Lens

This page will walk users through the subgraph creation flow using the DEX Lens.

**Start from the Dashboard**\
Click **“Create Subindex.”**

<figure><img src="https://2049355549-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzmBKBYuDHMhk4aXv9vJw%2Fuploads%2FUX7Q6zRTm7yllKv8F1yX%2Fimage.png?alt=media&amp;token=90f95195-85b9-4771-bdae-35570022f0df" alt=""><figcaption></figcaption></figure>

**Select Chain**\
Choose the blockchain network on which you want to track data and create your subgraph.

<figure><img src="https://2049355549-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzmBKBYuDHMhk4aXv9vJw%2Fuploads%2FZiW9X6SJqXwV4i9mkMtG%2FScreenshot%202025-10-06%20at%2010.46.40.png?alt=media&amp;token=f1cc9d9f-e68f-429c-9c7e-91fbd2706805" alt=""><figcaption></figcaption></figure>

**Select Creation Method**\
Choose 'Create using Lenses'.

<figure><img src="https://2049355549-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzmBKBYuDHMhk4aXv9vJw%2Fuploads%2FyVH0nt7j9ZY0zDqGROUN%2FScreenshot%202025-10-06%20at%2010.47.56.png?alt=media&amp;token=f7945035-8557-492a-818d-618a8e587c67" alt=""><figcaption></figcaption></figure>

**Select a Template**\
Choose the **DEX Lens** template from the available options.

<figure><img src="https://2049355549-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzmBKBYuDHMhk4aXv9vJw%2Fuploads%2Fdnoi7IDyhwqwSBeN7IBm%2FScreenshot%202025-10-06%20at%2010.48.11.png?alt=media&amp;token=d5eb94f1-db8e-42f3-b439-2588a66542c5" alt=""><figcaption></figcaption></figure>

**Configure your Subgraph**\
Enter the relevant details and select the DEX of interest.&#x20;

<figure><img src="https://2049355549-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzmBKBYuDHMhk4aXv9vJw%2Fuploads%2Fy88B1ACVSlB3ZfRSytOM%2FScreenshot%202025-10-06%20at%2010.48.37.png?alt=media&amp;token=f3e5fd36-99cf-4f17-8139-bc7286321459" alt=""><figcaption></figcaption></figure>

**Select LP Pairs**\
GraphEngine will automatically search for and display popular LP pairs by volume currently active on the selected DEX. \
\
**Additional Pair Addresses**\
Alternatively you can else enter LP pairs manually by entering the correct pair address.&#x20;

**Choose Events to Track**\
Pick which events the subgraph should listen to (Transfers, Swaps, Mints, Burns, Add/Remove LP).

<figure><img src="https://2049355549-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzmBKBYuDHMhk4aXv9vJw%2Fuploads%2FrOGqLB2opuzCVMadu4Az%2FScreenshot%202025-10-06%20at%2010.49.31.png?alt=media&amp;token=ef2050d6-db0a-4995-9959-dbbd36d188c1" alt=""><figcaption></figcaption></figure>

**Review Your Setup**\
A review page will show the events which will be listened to. Carefully check and validate before submitting.

<figure><img src="https://2049355549-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzmBKBYuDHMhk4aXv9vJw%2Fuploads%2FpQvLCkXZJt1caCo11kSS%2FScreenshot%202025-10-06%20at%2010.49.59.png?alt=media&amp;token=2528b1b2-0c60-4a92-b7f7-f5c9c00ac98f" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2049355549-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzmBKBYuDHMhk4aXv9vJw%2Fuploads%2FNchbCtxilYomxGTV1WU0%2FScreenshot%202025-10-06%20at%2010.50.28.png?alt=media&amp;token=b50373e6-a726-472c-8248-2a822dcda5ad" alt=""><figcaption></figcaption></figure>

**Submit for Approval**\
Click **“Create Subgraph.”** Your subgraph will appear in the **“My Subgraphs”** page. Once approved by the team, data ingestion will begin and the subgraph will be ready for querying.

<figure><img src="https://2049355549-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzmBKBYuDHMhk4aXv9vJw%2Fuploads%2F4wIyAeSbXpG7BZBAWRlo%2FScreenshot%202025-10-06%20at%2010.50.53.png?alt=media&amp;token=54d5bf71-4c87-486a-87bb-1d5e13a509dd" alt=""><figcaption></figcaption></figure>

**Check on My Subgraphs**\
As a final check. Look for your submitted subgraph in 'My Subgraphs' on the Dashboard awaiting approval.&#x20;

<figure><img src="https://2049355549-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzmBKBYuDHMhk4aXv9vJw%2Fuploads%2F4u1YMlc9DHHdOmzFDLOp%2FScreenshot%202025-10-06%20at%2010.51.55.png?alt=media&amp;token=1e51b03d-b02d-4366-b28f-79e06bdc17e8" alt=""><figcaption></figcaption></figure>
