getScheduledRemovals
getScheduledRemovals(
client,options):Promise<readonlybigint[]>
Defined in: packages/synapse-core/src/pdp-verifier/get-scheduled-removals.ts:53
Get the scheduled removals for a data set (deduped)
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
client | Client<Transport, Chain> | The client to use to get the scheduled removals. |
options | OptionsType | getScheduledRemovals.OptionsType |
Returns
Section titled “Returns”Promise<readonly bigint[]>
The piece IDs scheduled for removal getScheduledRemovals.OutputType
Example
Section titled “Example”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,})