# 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/d2725be576fc57fac19e7c64cd8e004e0cec85d3/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.