getCheckpoints

open suspend override fun getCheckpoints(first: Int?, before: String?, last: Int?, after: String?): Result<GetCheckpointsQuery.Data?, SuiError>

Fetches a paginated list of checkpoints.

This method supports bidirectional pagination.

Return

A Result which is either:

  • Ok: Containing a nullable GetCheckpointsQuery.Data object with a list of checkpoints and pagination cursors.

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

Parameters

first

An optional integer specifying the number of items to return when paginating forward.

after

An optional cursor for forward pagination.

last

An optional integer specifying the number of items to return when paginating backward.

before

An optional cursor for backward pagination.