Governance

class Governance(val config: SuiConfig) : Governance

Governance API implementation

This namespace contains all the functions related to governance

Constructors

Link copied to clipboard
constructor(config: SuiConfig)

Properties

Link copied to clipboard

The SuiConfig to use

Functions

Link copied to clipboard
open suspend override fun getCommitteeInfo(epochId: Long?, after: String?): Option<CommitteeInfo>

Get the committee info

Link copied to clipboard
open suspend override fun getStakes(owner: AccountAddress, limit: Int?, cursor: String?): Option<Stake>

Get stakes for an address

Link copied to clipboard
open suspend override fun getStakesByIds(ids: List<String>, limit: Int?, cursor: String?): Option<Stakes>

Get stakes by IDs

Link copied to clipboard
open suspend override fun getValidatorApy(): Option<ValidatorsApy>

Get the validators APY