# addPieces

> **addPieces**(`client`, `options`): [`Promise`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\<[`ReturnType`](/reference/filoz/synapse-core/sp/namespaces/addpieces/type-aliases/returntype/)\>

Defined in: [packages/synapse-core/src/warm-storage/pieces.ts:41](https://github.com/FilOzone/synapse-sdk/blob/32f86959b0bf15557657ea412e31a0897440ca98/packages/synapse-core/src/warm-storage/pieces.ts#L41)

Add pieces to a data set

## Parameters

| Parameter | Type | Description |
| ------ | ------ | ------ |
| `client` | `Client`\<`Transport`, `Chain`, `Account`\> | The client to use to add the pieces. |
| `options` | [`AddPiecesOptions`](/reference/filoz/synapse-core/warm-storage/type-aliases/addpiecesoptions/) | The options for the add pieces. [AddPiecesOptions](/reference/filoz/synapse-core/warm-storage/type-aliases/addpiecesoptions/) |

## Returns

[`Promise`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\<[`ReturnType`](/reference/filoz/synapse-core/sp/namespaces/addpieces/type-aliases/returntype/)\>

The response from the add pieces operation.