Skip to main content

Validator

data class Validator(var apy: Int? = null, var address: Address, var commissionRate: Int? = null, var credentials: ValidatorCredentials? = null, var description: String? = null, var exchangeRatesSize: ULong? = null, var gasPrice: ULong? = null, var name: String? = null, var imageUrl: String? = null, var nextEpochCommissionRate: Int? = null, var nextEpochCredentials: ValidatorCredentials? = null, var nextEpochGasPrice: ULong? = null, var nextEpochStake: ULong? = null, var operationCap: ByteArray? = null, var pendingPoolTokenWithdraw: ULong? = null, var pendingStake: ULong? = null, var pendingTotalIotaWithdraw: ULong? = null, var poolTokenBalance: ULong? = null, var projectUrl: String? = null, var rewardsPool: ULong? = null, var stakingPoolActivationEpoch: ULong? = null, var stakingPoolId: ObjectId, var stakingPoolIotaBalance: ULong? = null, var votingPower: Int? = null) : Disposable

Represents a validator in the system.

Constructors

Validatorconstructor(apy: Int? = null, address: Address, commissionRate: Int? = null, credentials: ValidatorCredentials? = null, description: String? = null, exchangeRatesSize: ULong? = null, gasPrice: ULong? = null, name: String? = null, imageUrl: String? = null, nextEpochCommissionRate: Int? = null, nextEpochCredentials: ValidatorCredentials? = null, nextEpochGasPrice: ULong? = null, nextEpochStake: ULong? = null, operationCap: ByteArray? = null, pendingPoolTokenWithdraw: ULong? = null, pendingStake: ULong? = null, pendingTotalIotaWithdraw: ULong? = null, poolTokenBalance: ULong? = null, projectUrl: String? = null, rewardsPool: ULong? = null, stakingPoolActivationEpoch: ULong? = null, stakingPoolId: ObjectId, stakingPoolIotaBalance: ULong? = null, votingPower: Int? = null)

Properties

NameSummary
addressvar address: Address
The validator's address.
apyvar apy: Int?
The APY of this validator in basis points. To get the APY in percentage, divide by 100.
commissionRatevar commissionRate: Int?
The fee charged by the validator for staking services.
credentialsvar credentials: ValidatorCredentials?
Validator's credentials.
descriptionvar description: String?
Validator's description.
exchangeRatesSizevar exchangeRatesSize: ULong?
Number of exchange rates in the table.
gasPricevar gasPrice: ULong?
The reference gas price for this epoch.
imageUrlvar imageUrl: String?
Validator's url containing their custom image.
namevar name: String?
Validator's name.
nextEpochCommissionRatevar nextEpochCommissionRate: Int?
The proposed next epoch fee for the validator's staking services.
nextEpochCredentialsvar nextEpochCredentials: ValidatorCredentials?
Validator's credentials for the next epoch.
nextEpochGasPricevar nextEpochGasPrice: ULong?
The validator's gas price quote for the next epoch.
nextEpochStakevar nextEpochStake: ULong?
The total number of IOTA tokens in this pool plus the pending stake amount for this epoch.
operationCapvar operationCap: ByteArray?
The validator's current valid Cap object. Validators can delegate the operation ability to another address. The address holding this Cap object can then update the reference gas price and tallying rule on behalf of the validator.
pendingPoolTokenWithdrawvar pendingPoolTokenWithdraw: ULong?
Pending pool token withdrawn during the current epoch, emptied at epoch boundaries. Zero for past epochs.
pendingStakevar pendingStake: ULong?
Pending stake amount for the current epoch, emptied at epoch boundaries. Zero for past epochs.
pendingTotalIotaWithdrawvar pendingTotalIotaWithdraw: ULong?
Pending stake withdrawn during the current epoch, emptied at epoch boundaries. Zero for past epochs.
poolTokenBalancevar poolTokenBalance: ULong?
Total number of pool tokens issued by the pool.
projectUrlvar projectUrl: String?
Validator's homepage URL.
rewardsPoolvar rewardsPool: ULong?
The epoch stake rewards will be added here at the end of each epoch.
stakingPoolActivationEpochvar stakingPoolActivationEpoch: ULong?
The epoch at which this pool became active.
stakingPoolIdvar stakingPoolId: ObjectId
The ID of this validator's 0x3::staking_pool::StakingPool.
stakingPoolIotaBalancevar stakingPoolIotaBalance: ULong?
The total number of IOTA tokens in this pool.
votingPowervar votingPower: Int?
The voting power of this validator in basis points (e.g., 100 = 1% voting power).

Functions

NameSummary
destroyopen override fun destroy()