# addPieces

```ts
function addPieces(client, options): Promise<{
  statusUrl: string;
  txHash: `0x${string}`;
}>;
```

Defined in: [packages/synapse-core/src/warm-storage/pieces.ts:33](https://github.com/FilOzone/synapse-sdk/blob/1d6c4b9fe34534bf1087dfe41491b72be0b46858/packages/synapse-core/src/warm-storage/pieces.ts#L33)

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)\<\{
  `statusUrl`: `string`;
  `txHash`: `` `0x${string}` ``;
\}\>

The response from the add pieces operation.