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}
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
options | OptionsType | getDataSet.OptionsType |
Returns
Section titled “Returns”Promise<{ id: bigint; nextChallengeEpoch: number; pieces: object[]; }>
The data set from the PDP API. getDataSet.OutputType
Throws
Section titled “Throws”Errors getDataSet.ErrorType