constructFindPieceUrl
function constructFindPieceUrl(apiEndpoint, pieceCid): string;
Defined in: packages/synapse-sdk/src/utils/piece.ts:27
Construct a piece discovery (findPiece) URL
Parameters
Section titled “Parameters”Parameter | Type | Description |
---|---|---|
apiEndpoint | string | The base API endpoint URL |
pieceCid | PieceLink | The PieceCID identifier |
Returns
Section titled “Returns”string
Full URL for finding the piece