paginateEpochValidators

abstract suspend fun paginateEpochValidators(id: Long, after: String? = null): Result<PaginateEpochValidatorsQuery.Data?, SuiError>

Fetches a paginated list of validators for a specific epoch.

Return

A Result which is either:

  • Ok: Containing a nullable PaginateEpochValidatorsQuery.Data object with a list of validators and a pagination cursor.

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

Parameters

id

The epoch number to fetch the validator set for.

after

An optional cursor for forward pagination.