Skip to content

upload

upload(client, options): Promise<{ dropped?: DroppedPiece[]; extraData: `0x${string}`; pieceCount: number; pieces: object[]; txHash: `0x${string}`; }>

Defined in: packages/synapse-core/src/sp/upload.ts:148

Upload multiple pieces to a data set on the PDP API.

Parameter Type Description
client Client<Transport, Chain, Account> The client to use to upload the pieces.
options OptionsType upload.OptionsType

Promise<{ dropped?: DroppedPiece[]; extraData: `0x${string}`; pieceCount: number; pieces: object[]; txHash: `0x${string}`; }>

Upload response upload.OutputType

Errors upload.ErrorType