Skip to content

PieceStatus

Defined in: packages/synapse-sdk/src/types.ts:565

Status information for a piece stored on a provider Note: Proofs are submitted for entire data sets, not individual pieces. The timing information reflects the data set’s status.

dataSetLastProven:
| Date
| null;

Defined in: packages/synapse-sdk/src/types.ts:569

When the data set containing this piece was last proven on-chain (null if never proven or not yet due)


dataSetNextProofDue:
| Date
| null;

Defined in: packages/synapse-sdk/src/types.ts:571

When the next proof is due for the data set containing this piece (end of challenge window)


exists: boolean;

Defined in: packages/synapse-sdk/src/types.ts:567

Whether the piece exists on the service provider


optional hoursUntilChallengeWindow: number;

Defined in: packages/synapse-sdk/src/types.ts:579

Time until the data set enters the challenge window (in hours)


optional inChallengeWindow: boolean;

Defined in: packages/synapse-sdk/src/types.ts:577

Whether the data set is currently in a challenge window


optional isProofOverdue: boolean;

Defined in: packages/synapse-sdk/src/types.ts:581

Whether the proof is overdue (past the challenge window without being submitted)


optional pieceId: number;

Defined in: packages/synapse-sdk/src/types.ts:575

The piece ID if the piece is in the data set


retrievalUrl: string | null;

Defined in: packages/synapse-sdk/src/types.ts:573

URL where the piece can be retrieved (null if not available)