# UseUploadPiecesResult

Defined in: [synapse-react/src/warm-storage/use-upload-pieces.ts:58](https://github.com/FilOzone/synapse-sdk/blob/628d3a8812e8612a183a3abe3328169fb741260b/packages/synapse-react/src/warm-storage/use-upload-pieces.ts#L58)

The result for the useUploadPieces mutation.

## Properties

### confirmations

> **confirmations**: `object`[]

Defined in: [synapse-react/src/warm-storage/use-upload-pieces.ts:63](https://github.com/FilOzone/synapse-sdk/blob/628d3a8812e8612a183a3abe3328169fb741260b/packages/synapse-react/src/warm-storage/use-upload-pieces.ts#L63)

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

> **addMessageOk**: `true`

#### confirmedPieceIds

> **confirmedPieceIds**: `bigint`[]

#### confirmedTxHash?

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

#### dataSetId

> **dataSetId**: `bigint`

#### pieceCount

> **pieceCount**: `number`

#### piecesAdded

> **piecesAdded**: `true`

#### txHash

> **txHash**: `` `0x${string}` ``

#### txStatus

> **txStatus**: `"confirmed"`

***

### failed

> **failed**: `object`[]

Defined in: [synapse-react/src/warm-storage/use-upload-pieces.ts:67](https://github.com/FilOzone/synapse-sdk/blob/628d3a8812e8612a183a3abe3328169fb741260b/packages/synapse-react/src/warm-storage/use-upload-pieces.ts#L67)

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

#### error

> **error**: [`Error`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Error)

#### file

> **file**: [`File`](https://developer.mozilla.org/docs/Web/API/File)

***

### pieces

> **pieces**: [`UploadedPiece`](/reference/filoz/synapse-react/interfaces/uploadedpiece/)[]

Defined in: [synapse-react/src/warm-storage/use-upload-pieces.ts:65](https://github.com/FilOzone/synapse-sdk/blob/628d3a8812e8612a183a3abe3328169fb741260b/packages/synapse-react/src/warm-storage/use-upload-pieces.ts#L65)

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