# getPieces

> **getPieces**(`client`, `options`): [`Promise`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\<\{ `hasMore`: `boolean`; `pieces`: `object`[]; \}\>

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

Get the pieces for a data set

Calls the PDP Verifier contract to get the pieces.

## Parameters

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

## Returns

[`Promise`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\<\{ `hasMore`: `boolean`; `pieces`: `object`[]; \}\>