Skip to content

Piece

Defined in: packages/synapse-core/src/warm-storage/types.ts:62

A piece in a PDP data set.

Pieces carry no metadata field. Piece metadata is not stored on chain, so it can’t be read back from the contracts. Fetch it from the Filecoin API (https://api.filecoin.io/docs).

cid: PieceCID

Defined in: packages/synapse-core/src/warm-storage/types.ts:63


id: bigint

Defined in: packages/synapse-core/src/warm-storage/types.ts:64


url: string | null

Defined in: packages/synapse-core/src/warm-storage/types.ts:66

Retrieval URL, or null when no provider endpoint or CDN is available.