# parseAllPieceMetadata

> **parseAllPieceMetadata**(`data`): [`OutputType`](/reference/filoz/synapse-core/warm-storage/namespaces/getallpiecemetadata/type-aliases/outputtype/)

Defined in: [packages/synapse-core/src/warm-storage/get-all-piece-metadata.ts:141](https://github.com/FilOzone/synapse-sdk/blob/5fb4a64c49efd6737240220601a121f0fdad7138/packages/synapse-core/src/warm-storage/get-all-piece-metadata.ts#L141)

Parse the contract output into a MetadataObject

:::caution[Deprecated]
  The FWSS piece metadata getter is being removed. Read metadata from `PieceAdded` events or an indexer instead.
  :::

## Parameters

| Parameter | Type | Description |
| ------ | ------ | ------ |
| `data` | readonly \[readonly `string`[], readonly `string`[]\] | The contract output from the getAllPieceMetadata function [getAllPieceMetadata.ContractOutputType](/reference/filoz/synapse-core/warm-storage/namespaces/getallpiecemetadata/type-aliases/contractoutputtype/) |

## Returns

[`OutputType`](/reference/filoz/synapse-core/warm-storage/namespaces/getallpiecemetadata/type-aliases/outputtype/)

The metadata formatted as a MetadataObject [getAllPieceMetadata.OutputType](/reference/filoz/synapse-core/warm-storage/namespaces/getallpiecemetadata/type-aliases/outputtype/)