Skip to content

Service Provider HTTP Operations

import * as SP from '@filoz/synapse-core/sp'
NamespaceDescription
addPieces-
createDataSet-
createDataSetAndAddPieces-
deletePiece-
downloadPiece-
findPiece-
getDataSet-
getPiecesForDataSet-
uploadPiece-
waitForAddPiecesStatus-
waitForDataSetCreationStatus-
ClassDescription
AbortError-
NetworkError-
TimeoutError-
Type AliasDescription
AddPiecesResponse-
AddPiecesSuccess-
DataSetCreatedResponse-
DataSetCreateSuccess-
SPPiece-
SPPieceWithUrl-
UploadPieceResponse-
UploadPieceStreamingOptions-
VariableDescription
FACTOR-
MIN_TIMEOUT-
RETRIES-
FunctionDescription
addPiecesAdd pieces to a data set on the PDP API.
createDataSetCreate a data set on PDP API
createDataSetAndAddPiecesCreate a data set and add pieces to it on PDP API
deletePieceDelete a piece from a data set on the PDP API.
downloadPieceDownload a piece and verify from the PDP API.
findPieceFind a piece on the PDP API.
getDataSetGet a data set from the PDP API.
getPiecesForDataSetGet the pieces for a data set from the PDP API.
pingPing the PDP API.
resetTimeout-
setTimeout-
uploadPieceUpload a piece to the PDP API.
uploadPieceStreamingUpload piece data using the 3-step CommP-last streaming protocol.
waitForAddPiecesStatusWait for the add pieces status.
waitForDataSetCreationStatusWait for the data set creation status.