Skip to content

UseUploadPiecesResult

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

The result for the useUploadPieces mutation.

confirmations: object[]

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

The provider confirmations of the add-pieces transactions, one per transaction. All files go in one transaction unless they don’t fit in a single add-pieces request.

addMessageOk: true

confirmedPieceIds: bigint[]

optional confirmedTxHash?: `0x${string}`

dataSetId: bigint

pieceCount: number

piecesAdded: true

txHash: `0x${string}`

txStatus: "confirmed"


failed: object[]

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

The files that failed to upload or to be added. Retry them with a new mutation.

error: Error

file: File


pieces: UploadedPiece[]

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

The pieces added to the data set, in file order.