Skip to content

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

ParameterTypeDescription
clientClient<Transport, Chain>The client to use to check if the data set is live.
optionsOptionsTypedataSetLive.OptionsType

Promise<boolean>

Whether the data set is live dataSetLive.OutputType

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 })

Errors dataSetLive.ErrorType