> For the complete documentation index, see [llms.txt](https://magma-finance-1.gitbook.io/magma-developer-sdk/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://magma-finance-1.gitbook.io/magma-developer-sdk/almm_contract/2.retrieve-almm-pools.md).

# Retrieve ALMM pools

## 1. Retrieve all pools

Method: `magmaClmmSDK.Almm.getPools()`

### Example

```typescript
async function retrievelAllPools() {
  const almmPools = await mainnetSDK.Almm.getPools();
  console.log(`pool length: ${almmPools.length}`);
}

// retrievelAllPools()
// pool length: 82
```
