getClientDataSetsLength
getClientDataSetsLength(
client,options):Promise<bigint>
Defined in: packages/synapse-core/src/warm-storage/get-client-data-sets-length.ts:62
Get total count of client data sets
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
client |
Client<Transport, Chain> |
The client to use to get the data set count. |
options |
OptionsType |
getClientDataSetsLength.OptionsType |
Returns
Section titled “Returns”Promise<bigint>
Total count of data sets getClientDataSetsLength.OutputType
Throws
Section titled “Throws”Errors getClientDataSetsLength.ErrorType
Example
Section titled “Example”import { getClientDataSetsLength } 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 count = await getClientDataSetsLength(client, {
address: '0x0000000000000000000000000000000000000000',
})
console.log(count)