UseUploadPiecesResult
Defined in: synapse-react/src/warm-storage/use-upload-pieces.ts:58
The result for the useUploadPieces mutation.
Properties
Section titled “Properties”confirmations
Section titled “confirmations”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
Section titled “addMessageOk”addMessageOk:
true
confirmedPieceIds
Section titled “confirmedPieceIds”confirmedPieceIds:
bigint[]
confirmedTxHash?
Section titled “confirmedTxHash?”
optionalconfirmedTxHash?:`0x${string}`
dataSetId
Section titled “dataSetId”dataSetId:
bigint
pieceCount
Section titled “pieceCount”pieceCount:
number
piecesAdded
Section titled “piecesAdded”piecesAdded:
true
txHash
Section titled “txHash”txHash:
`0x${string}`
txStatus
Section titled “txStatus”txStatus:
"confirmed"
failed
Section titled “failed”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
Section titled “pieces”pieces:
UploadedPiece[]
Defined in: synapse-react/src/warm-storage/use-upload-pieces.ts:65
The pieces added to the data set, in file order.