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.
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 | getClientDataSets.OptionsType |
Returns
Section titled “Returns”Array of data set info entries getClientDataSets.OutputType
Throws
Section titled “Throws”Errors getClientDataSets.ErrorType
Example
Section titled “Example”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)