# getPieces

```ts
function getPieces(client, options): Promise<{
  hasMore: boolean;
  pieces: object[];
}>;
```

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

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`[];
\}\>