Governance

interface Governance

Defines the API for interacting with Sui's on-chain governance, including validators, committees, and staking.

Inheritors

Functions

Link copied to clipboard
abstract suspend fun getCommitteeInfo(epochId: Long? = null, after: String? = null): Result<GetCommitteeInfoQuery.Data?, SuiError>

Fetches the committee of validators for a specific epoch.

Link copied to clipboard
abstract suspend fun getStakes(owner: AccountAddress, limit: Int? = null, cursor: String? = null): Result<GetStakesQuery.Data?, SuiError>

Fetches all StakedSui objects owned by a specific address.

Link copied to clipboard
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.

Link copied to clipboard
abstract suspend fun getValidatorApy(): Result<GetValidatorsApyQuery.Data?, SuiError>

Fetches the Annual Percentage Yield (APY) for all active validators.