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.
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<{ dropped?: DroppedPiece[]; extraData: `0x${string}`; pieceCount: number; pieces: object[]; txHash: `0x${string}`; }>
Upload response upload.OutputType
Throws
Section titled “Throws”Errors upload.ErrorType