# 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:139](https://github.com/FilOzone/synapse-sdk/blob/5b0d94cdb43d49b460a669d64636e274a8d683fb/packages/synapse-core/src/warm-storage/get-all-piece-metadata.ts#L139)

Parse the contract output into a MetadataObject

## 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/)