Skip to content

constructFindPieceUrl

function constructFindPieceUrl(apiEndpoint, pieceCid): string;

Defined in: packages/synapse-sdk/src/utils/piece.ts:27

Construct a piece discovery (findPiece) URL

ParameterTypeDescription
apiEndpointstringThe base API endpoint URL
pieceCidPieceLinkThe PieceCID identifier

string

Full URL for finding the piece