> ## Documentation Index
> Fetch the complete documentation index at: https://docs.b3os.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Top Pools by DEX

Retrieves top pools for a specific DEX on a network, ranked by 24h volume by default. Returns pricing, volumes, transaction counts, and liquidity; supports pagination and sorting options. Ideal for: DEX-specific pool discovery, comparing liquidity across a protocol, finding active trading pairs.

![Get Top Pools by DEX logo](https://ai-icon.b3.fun/logo/coingecko)
Catalog action Blockchain Data

Retrieves top pools for a specific DEX on a network, ranked by 24h volume by default. Returns pricing, volumes, transaction counts, and liquidity; supports pagination and sorting options. Ideal for: DEX-specific pool discovery, comparing liquidity across a protocol, finding active trading pairs.


## At a Glance

| Field | Value |
| --- | --- |
| Action ID | `coingecko-get-top-pools-dex` |
| Category | Blockchain Data |
| Connector | Not required |
| Requires gas | No |
| Funds movement | None declared |
| Tags | `coingecko`, `onchain`, `pool`, `dex`, `top`, `read` |

## Payload Schema

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `network` | `string` | Yes | Network ID \(e.g., 'eth', 'bsc', 'polygon_pos'\). |
| `dex` | `string` | Yes | DEX ID \(e.g., 'uniswap_v3', 'sushiswap'\). |
| `include` | `string` | No | Attributes to include: base_token, quote_token, dex \(comma-separated\). |
| `page` | `number` | No | Page number for pagination \(default: 1\). |
| `sort` | `string` | No | Sort order: h24_tx_count_desc, h24_volume_usd_desc \(default: h24_tx_count_desc\). |

## Result Schema

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `pools` | `array` | Yes | List of top pools on the specified DEX |

## Examples

**Workflow node**

```json
{
  "type": "coingecko-get-top-pools-dex",
  "payload": {
    "network": "example-network",
    "dex": "example-dex"
  },
  "children": []
}
```
  **Test with API**

```bash
curl -X POST "https://api.b3os.org/v1/actions/coingecko-get-top-pools-dex/test" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "inputs": {
    "network": "example-network",
    "dex": "example-dex"
  }
}'
```

**Use expressions for dynamic values**

Payload fields can use workflow expressions such as `{{$trigger.body.amount}}`, `{{$nodes.fetch.result.price}}`, and `{{$props.asset}}` when the value should come from a trigger, prior node, or reusable workflow prop.