Skip to content

getScheduledRemovals

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

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

Get the scheduled removals for a data set (deduped)

ParameterTypeDescription
clientClient<Transport, Chain>The client to use to get the scheduled removals.
optionsOptionsTypegetScheduledRemovals.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