Skip to content

UseUploadPiecesProps

Defined in: synapse-react/src/warm-storage/use-upload-pieces.ts:73

The props for the useUploadPieces hook.

optional concurrency?: 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.

4

optional mutation?: Omit<MutateOptions<UseUploadPiecesResult, Error, UseUploadPiecesVariables, unknown>, "mutationFn">

Defined in: synapse-react/src/warm-storage/use-upload-pieces.ts:91

The mutation options.


optional onFileProgress?: (progress) => void

Defined in: synapse-react/src/warm-storage/use-upload-pieces.ts:83

The callback to call when a file makes upload progress.

ParameterType
progressUploadPiecesFileProgress

void


optional onHash?: (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.

ParameterType
hashstring

void


optional sessionKey?: 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.

SessionKeySignerOptions.sessionKey