# getPools

{% hint style="info" %}
This interface retrieves data directly from the chain, which may slow the response time if numerous
{% endhint %}

Retrieve all turbos pools.

### Signature

`getPool(withLocked?: boolean): Promise<Pool.Pool[]>`

### Params

`withLocked`:  Retrieve all turbos pools including locked ones. Defaults `false`

### Example

```typescript
// unlocked
const pools = await sdk.pool.getPools();

// ulocked + locked
const pools = await sdk.pool.getPools(true);
```

Response

```json
[
  {
    coin_a: '7933797',
    coin_b: '97630837',
    deploy_time_ms: '1727128400342',
    fee: 3000,
    fee_growth_global_a: '3360020434863282893',
    fee_growth_global_b: '32358835950111033230',
    fee_protocol: 300000,
    id: {
      id: '0x8e7be736d448d1eb4bf15521fddf2072402c3fabe539d29e8550b1463fe122cd'
    },
    liquidity: '0',
    max_liquidity_per_tick: '23012265295255187899058267899625901',
    protocol_fees_a: '7933507',
    protocol_fees_b: '97630562',
    reward_infos: [],
    reward_last_updated_time_ms: '1737838546481',
    sqrt_price: '19641326088305147793',
    tick_current_index: {
      type: '0x91bfbc386a41afcfd9b2533058d7e915a1d3829089cc268ff4333d54d6339ca1::i32::I32',
      fields: [Object]
    },
    tick_map: {
      type: '0x2::table::Table<0x91bfbc386a41afcfd9b2533058d7e915a1d3829089cc268ff4333d54d6339ca1::i32::I32, u256>',
      fields: [Object]
    },
    tick_spacing: 60,
    unlocked: true,
    objectId: '0x8e7be736d448d1eb4bf15521fddf2072402c3fabe539d29e8550b1463fe122cd',
    type: '0x91bfbc386a41afcfd9b2533058d7e915a1d3829089cc268ff4333d54d6339ca1::pool::Pool<0x6cc3c2b9f33461479ec785c5f6ea759e0f118a96bde35cc15325c7b853e7fe66::sity::SITY, 0x2::sui::SUI, 0x91bfbc386a41afcfd9b2533058d7e915a1d3829089cc268ff4333d54d6339ca1::fee3000bps::FEE3000BPS>',
    types: [
      '0x6cc3c2b9f33461479ec785c5f6ea759e0f118a96bde35cc15325c7b853e7fe66::sity::SITY',
      '0x2::sui::SUI',
      '0x91bfbc386a41afcfd9b2533058d7e915a1d3829089cc268ff4333d54d6339ca1::fee3000bps::FEE3000BPS'
    ]
  },
  ... more items
]
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://turbos.gitbook.io/turbos/developer-docs/via-sdk/clmm/getpools.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
