getCheckpoint

abstract suspend fun getCheckpoint(checkpointId: CheckpointId? = CheckpointId()): Result<GetCheckpointQuery.Data?, SuiError>

Fetches the details of a specific checkpoint.

If checkpointId is not provided, it defaults to fetching the latest checkpoint.

Return

A Result which is either:

  • Ok: Containing a nullable GetCheckpointQuery.Data object with the checkpoint details.

  • Err: Containing a SuiError object with a list of GraphQLErrors.

Parameters

checkpointId

The identifier of the checkpoint to fetch. Can be a sequence number or digest.