Skip to content

getDataSet

getDataSet(options): Promise<{ id: bigint; nextChallengeEpoch: number; pieces: object[]; }>

Defined in: packages/synapse-core/src/sp/get-data-set.ts:44

Get a data set from the PDP API.

GET /pdp/data-sets/{dataSetId}

ParameterTypeDescription
optionsOptionsTypegetDataSet.OptionsType

Promise<{ id: bigint; nextChallengeEpoch: number; pieces: object[]; }>

The data set from the PDP API. getDataSet.OutputType

Errors getDataSet.ErrorType