UseUploadProps
Defined in: synapse-react/src/warm-storage/use-upload.ts:9
Properties
Section titled “Properties”mutation?
Section titled “mutation?”
optionalmutation:Omit<MutateOptions<{addMessageOk:true;confirmedPieceIds:bigint[];dataSetId:bigint;pieceCount:number;piecesAdded:true;txHash:`0x${string}`;txStatus:"confirmed"; },Error,UseUploadVariables,unknown>,"mutationFn">
Defined in: synapse-react/src/warm-storage/use-upload.ts:15
onHash()?
Section titled “onHash()?”
optionalonHash: (hash) =>void
Defined in: synapse-react/src/warm-storage/use-upload.ts:13
The callback to call when the hash is available.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
hash | string |
Returns
Section titled “Returns”void
sessionKey?
Section titled “sessionKey?”
optionalsessionKey:SessionKey
Defined in: synapse-react/src/warm-storage/use-upload.ts:14