Skip to content

upload(client, options): Promise<{ pieces: object[]; statusUrl: string; txHash: `0x${string}`; }>

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

Upload multiplepieces to a data set on the PDP API.

ParameterTypeDescription
clientClient<Transport, Chain, Account>The client to use to upload the pieces.
optionsOptionsTypeupload.OptionsType

Promise<{ pieces: object[]; statusUrl: string; txHash: `0x${string}`; }>

Upload response upload.OutputType

Errors upload.ErrorType