# getClientDataSetsIterable

> **getClientDataSetsIterable**(`client`, `options`): [`OutputType`](/reference/filoz/synapse-core/warm-storage/namespaces/getclientdatasetsiterable/type-aliases/outputtype/)

Defined in: [packages/synapse-core/src/warm-storage/get-client-data-sets.ts:152](https://github.com/FilOzone/synapse-sdk/blob/78c167418083a17417ccf3994e37407987d6251b/packages/synapse-core/src/warm-storage/get-client-data-sets.ts#L152)

Get client data sets iterable

## Parameters

| Parameter | Type | Description |
| ------ | ------ | ------ |
| `client` | `Client`\<`Transport`, `Chain`\> | The client to use to get data sets for a client address. |
| `options` | [`OptionsType`](/reference/filoz/synapse-core/warm-storage/namespaces/getclientdatasetsiterable/type-aliases/optionstype/) | [getClientDataSetsIterable.OptionsType](/reference/filoz/synapse-core/warm-storage/namespaces/getclientdatasetsiterable/type-aliases/optionstype/) |

## Returns

[`OutputType`](/reference/filoz/synapse-core/warm-storage/namespaces/getclientdatasetsiterable/type-aliases/outputtype/)

Async generator of data set info entries [getClientDataSetsIterable.OutputType](/reference/filoz/synapse-core/warm-storage/namespaces/getclientdatasetsiterable/type-aliases/outputtype/)

## Throws

Errors [getClientDataSetsIterable.ErrorType](/reference/filoz/synapse-core/warm-storage/namespaces/getclientdatasetsiterable/type-aliases/errortype/)

## Example

```ts
import { getClientDataSetsIterable } from '@filoz/synapse-core/warm-storage'
import { createPublicClient, http } from 'viem'
import { calibration } from '@filoz/synapse-core/chains'

const client = createPublicClient({
  chain: calibration,
  transport: http(),
})

const dataSets = await getClientDataSetsIterable(client, {
  address: '0x0000000000000000000000000000000000000000',
})

for await (const dataSet of dataSets) {
  console.log(dataSet.dataSetId)
}
```