Skip to content

getClientDataSetsIterable

getClientDataSetsIterable(client, options): OutputType

Defined in: packages/synapse-core/src/warm-storage/get-client-data-sets.ts:152

Get client data sets iterable

ParameterTypeDescription
clientClient<Transport, Chain>The client to use to get data sets for a client address.
optionsOptionsTypegetClientDataSetsIterable.OptionsType

OutputType

Async generator of data set info entries getClientDataSetsIterable.OutputType

Errors getClientDataSetsIterable.ErrorType

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)
}