> For the complete documentation index, see [llms.txt](https://darksun-2.gitbook.io/darksun-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://darksun-2.gitbook.io/darksun-docs/integrations/overview/pool-catalog.md). Agents can also search and read this documentation through its [MCP server](https://darksun-2.gitbook.io/darksun-docs/~gitbook/mcp).

# pool\_catalog

This guide defines the recommended payload shape for a pool catalog endpoint.

## Purpose

DarkSun uses `pool_catalog` to discover:

* known pool contracts
* pair-level metadata
* protocol coverage for liquidity integrations

## Manifest expectation

Example capability declaration:

```json
{
  "key": "pool_catalog",
  "schema": "pool_catalog",
  "version": "1.0",
  "endpoint": "pool_registry",
  "output": {
    "collection": "pools"
  }
}
```

This means DarkSun expects a top-level `pools` array.

## Recommended payload

```json
{
  "chain": "terra_classic",
  "pools": [
    {
      "name": "LUNC / USTC",
      "platform": "Terraswap",
      "contract": "terra1pool...",
      "decimals": 6
    }
  ]
}
```

## Required fields

### Root object

* `pools`

### Pool object

* `name`
* `platform`
* `contract`

## Recommended fields

* `decimals`
* `pairContract`
* `lpToken`
* `platformIcon`

## Good implementation patterns

* keep one row per known pool
* use the LP token or canonical pool contract consistently
* make `platform` values line up with your DEX catalog if you expose one

## Common mistakes

### Returning unlabeled contract lists

DarkSun needs enough metadata to map contracts to pools and platforms.

### Inconsistent naming between pool and DEX data

If `platform` does not match the DEX catalog semantics, integration gets harder to reason about.
