getClientDataSetsIterable
getClientDataSetsIterable(
client,options):OutputType
Defined in: packages/synapse-core/src/warm-storage/get-client-data-sets.ts:152
Get client data sets iterable
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
client | Client<Transport, Chain> | The client to use to get data sets for a client address. |
options | OptionsType | getClientDataSetsIterable.OptionsType |
Returns
Section titled “Returns”Async generator of data set info entries getClientDataSetsIterable.OutputType
Throws
Section titled “Throws”Errors getClientDataSetsIterable.ErrorType
Example
Section titled “Example”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)}