Skip to content

getClientDataSets

getClientDataSets(client, options): Promise<OutputType>

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

Get client data sets

Use getPdpDataSets instead to get PDP data sets.

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

Promise<OutputType>

Array of data set info entries getClientDataSets.OutputType

Errors getClientDataSets.ErrorType

import { getClientDataSets } 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 getClientDataSets(client, {
client: '0x0000000000000000000000000000000000000000',
})
console.log(dataSets[0]?.dataSetId)