upload
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.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
client | Client<Transport, Chain, Account> | The client to use to upload the pieces. |
options | OptionsType | upload.OptionsType |
Returns
Section titled “Returns”Promise<{ pieces: object[]; statusUrl: string; txHash: `0x${string}`; }>
Upload response upload.OutputType
Throws
Section titled “Throws”Errors upload.ErrorType