# from

> **from**(`input`): [`PieceCID`](/reference/filoz/synapse-core/piece/classes/piececid/)

Defined in: [packages/synapse-core/src/piece/parse.ts:27](https://github.com/FilOzone/synapse-sdk/blob/c40a079e2786b1efad506fc87cb8f9c0c665f565/packages/synapse-core/src/piece/parse.ts#L27)

Construct a [PieceCID](/reference/filoz/synapse-core/piece/classes/piececid/) from any supported input.

## Parameters

| Parameter | Type |
| ------ | ------ |
| `input` | [`PieceCIDInput`](/reference/filoz/synapse-core/piece/type-aliases/piececidinput/) |

## Returns

[`PieceCID`](/reference/filoz/synapse-core/piece/classes/piececid/)

## Throws

RangeError on invalid input or non-PieceCID shape.