getStakesByIds

abstract suspend fun getStakesByIds(ids: List<String>, limit: Int? = null, cursor: String? = null): Result<GetStakesByIdsQuery.Data?, SuiError>

Fetches a list of StakedSui objects by their unique IDs.

Return

A Result which is either:

  • Ok: Containing a nullable GetStakesByIdsQuery.Data object with a list of stakes and a pagination cursor.

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

Parameters

ids

A list of object IDs for the stakes to retrieve.

limit

An optional integer to specify the maximum number of stakes to return per page.

cursor

An optional cursor string for pagination.