# getClientDataSetIds

> **getClientDataSetIds**(`client`, `options`): [`Promise`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\<[`OutputType`](/reference/filoz/synapse-core/warm-storage/namespaces/getclientdatasetids/type-aliases/outputtype/)\>

Defined in: [packages/synapse-core/src/warm-storage/get-client-data-set-ids.ts:82](https://github.com/FilOzone/synapse-sdk/blob/aaa98045b003ec23f4318ba9a3032a434e5a20c9/packages/synapse-core/src/warm-storage/get-client-data-set-ids.ts#L82)

Get one bounded page of a client's data-set IDs.

Pass the returned `nextCursor` back as `cursor`; treat it as opaque. Use
[paginate](/reference/filoz/synapse-core/core/functions/paginate/) to traverse every page. `limit` must be greater than zero.

## Parameters

| Parameter | Type | Description |
| ------ | ------ | ------ |
| `client` | `Client`\<`Transport`, `Chain`\> | The client to use to get the client data set IDs. |
| `options` | [`OptionsType`](/reference/filoz/synapse-core/warm-storage/namespaces/getclientdatasetids/type-aliases/optionstype/) | [getClientDataSetIds.OptionsType](/reference/filoz/synapse-core/warm-storage/namespaces/getclientdatasetids/type-aliases/optionstype/) |

## Returns

[`Promise`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\<[`OutputType`](/reference/filoz/synapse-core/warm-storage/namespaces/getclientdatasetids/type-aliases/outputtype/)\>

A page of data set IDs [getClientDataSetIds.OutputType](/reference/filoz/synapse-core/warm-storage/namespaces/getclientdatasetids/type-aliases/outputtype/)

## Throws

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

## Examples

**Read the first page**

```ts
import { getClientDataSetIds } 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 address = '0x0000000000000000000000000000000000000000'
const page = await getClientDataSetIds(client, { address })
console.log(page.items, page.nextCursor)
```

**Iterate over every page**

```ts
import { paginate } from '@filoz/synapse-core'
import { getClientDataSetIds } from '@filoz/synapse-core/warm-storage'

for await (const dataSetId of paginate(({ cursor }) =>
  getClientDataSetIds(client, { address, cursor })
)) {
  console.log(dataSetId)
}
```