Governance

class Governance(val config: SuiConfig) : Governance

The concrete implementation of the Governance interface.

Parameters

config

The SuiConfig object specifying the RPC endpoint and connection settings.

Constructors

Link copied to clipboard
constructor(config: SuiConfig)

Properties

Link copied to clipboard

Functions

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

Fetches the committee of validators for a specific epoch.

Link copied to clipboard

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