filecoin-pin
    Preparing search index...

    Variable getDataSetPieces

    getDataSetPieces: (
        synapse: Synapse,
        dataSetId: bigint,
        serviceURL: string,
        options?: GetDataSetPiecesOptions,
    ) => Promise<DataSetPiecesResult>

    Type Declaration

      • (
            synapse: Synapse,
            dataSetId: bigint,
            serviceURL: string,
            options?: GetDataSetPiecesOptions,
        ): Promise<DataSetPiecesResult>
      • Get all pieces for a dataset.

        Fetches on-chain pieces via PDPVerifier and provider-side pieces from the service URL, reconciles statuses, and optionally enriches with metadata.

        Parameters

        • synapse: Synapse

          Initialized Synapse instance

        • dataSetId: bigint

          Dataset ID to fetch pieces for

        • serviceURL: string

          Provider PDP service URL for orphan detection

        • Optionaloptions: GetDataSetPiecesOptions

          Optional configuration

        Returns Promise<DataSetPiecesResult>

        Pieces and warnings