Skip to content

getScheduledRemovals

getScheduledRemovals(client, options): Promise<readonly bigint[]>

Defined in: packages/synapse-core/src/pdp-verifier/get-scheduled-removals.ts:54

Get the scheduled removals for a data set (deduped)

Parameter Type Description
client Client<Transport, Chain> The client to use to get the scheduled removals.
options OptionsType getScheduledRemovals.OptionsType

Promise<readonly bigint[]>

The piece IDs scheduled for removal getScheduledRemovals.OutputType

import { getScheduledRemovals } 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 pieceIds = await getScheduledRemovals(client, {
  dataSetId: 1n,
})

Errors getScheduledRemovals.ErrorType