UseUploadPiecesProps
Defined in: synapse-react/src/warm-storage/use-upload-pieces.ts:73
The props for the useUploadPieces hook.
Extends
Section titled “Extends”Properties
Section titled “Properties”concurrency?
Section titled “concurrency?”
optionalconcurrency?:number
Defined in: synapse-react/src/warm-storage/use-upload-pieces.ts:79
The maximum number of files streamed to the provider at the same time.
Default
Section titled “Default”4mutation?
Section titled “mutation?”
optionalmutation?:Omit<MutateOptions<UseUploadPiecesResult,Error,UseUploadPiecesVariables,unknown>,"mutationFn">
Defined in: synapse-react/src/warm-storage/use-upload-pieces.ts:91
The mutation options.
onFileProgress?
Section titled “onFileProgress?”
optionalonFileProgress?: (progress) =>void
Defined in: synapse-react/src/warm-storage/use-upload-pieces.ts:83
The callback to call when a file makes upload progress.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
progress | UploadPiecesFileProgress |
Returns
Section titled “Returns”void
onHash?
Section titled “onHash?”
optionalonHash?: (hash) =>void
Defined in: synapse-react/src/warm-storage/use-upload-pieces.ts:87
The callback to call when an add-pieces transaction hash is available.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
hash | string |
Returns
Section titled “Returns”void
sessionKey?
Section titled “sessionKey?”
optionalsessionKey?:SessionKey<"Secp256k1"> |null
Defined in: synapse-react/src/signer.ts:14
The session key to sign storage provider (EIP-712) operations with. If not provided, the connected wallet signs.