dataSetLive
dataSetLive(
client,options):Promise<boolean>
Defined in: packages/synapse-core/src/pdp-verifier/data-set-live.ts:43
Check if a data set is live
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
client | Client<Transport, Chain> | The client to use to check if the data set is live. |
options | OptionsType | dataSetLive.OptionsType |
Returns
Section titled “Returns”Promise<boolean>
Whether the data set is live dataSetLive.OutputType
Example
Section titled “Example”import { dataSetLive } from '@filoz/synapse-core/pdp-verifier'import { calibration } from '@filoz/synapse-core/chains'import { createPublicClient, http } from 'viem'
const client = createPublicClient({ chain: calibration, transport: http(),})
const isLive = await dataSetLive(client, { dataSetId: 1n })Throws
Section titled “Throws”Errors dataSetLive.ErrorType