Validator

interface Validator

Definition of a Validator in the system contracts

Note: fields of ValidatorMetadata are flattened into this type

Properties

Link copied to clipboard
abstract val address: String?

The Sui Address of the validator. This is the sender that created the Validator object, and also the address to send validator/coins to during withdraws.

Link copied to clipboard
abstract val commissionRate: <Error class: unknown class>?

Commission rate of the validator, in basis point.

Link copied to clipboard
abstract val description: String?
Link copied to clipboard
abstract val extraFields: MoveTable

Any extra fields that's not defined statically.

Link copied to clipboard
abstract val gasPrice: <Error class: unknown class>?

Gas price quote, updated only at end of epoch.

Link copied to clipboard
abstract val imageUrl: String?
Link copied to clipboard

Any extra fields that's not defined statically in the ValidatorMetadata struct

Link copied to clipboard
abstract val name: String?

A unique human-readable name of this validator.

Link copied to clipboard
abstract val networkAddress: String?

The network address of the validator (could also contain extra info such as port, DNS and etc.).

Link copied to clipboard
abstract val networkPublicKey: <Error class: unknown class>?

The public key bytes corresponding to the private key that the validator uses to establish TLS connections

Link copied to clipboard
abstract val nextEpochCommissionRate: <Error class: unknown class>?

The commission rate of the validator starting the next epoch, in basis point.

Link copied to clipboard
abstract val nextEpochGasPrice: <Error class: unknown class>?

This validator's gas price quote for the next epoch.

Link copied to clipboard
Link copied to clipboard
abstract val nextEpochNetworkPublicKey: <Error class: unknown class>?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract val nextEpochProofOfPossession: <Error class: unknown class>?
Link copied to clipboard
abstract val nextEpochProtocolPublicKey: <Error class: unknown class>?
Link copied to clipboard
abstract val nextEpochStake: <Error class: unknown class>?

Total amount of stake that would be active in the next epoch.

Link copied to clipboard
Link copied to clipboard
abstract val nextEpochWorkerPublicKey: <Error class: unknown class>?
Link copied to clipboard
abstract val operationCapId: String?

The ID of this validator's current valid UnverifiedValidatorOperationCap

Link copied to clipboard
abstract val p2pAddress: String?

The address of the validator used for p2p activities such as state sync (could also contain extra info such as port, DNS and etc.).

Link copied to clipboard

Returns the field-presence view for this Validator instance.

Link copied to clipboard
abstract val primaryAddress: String?

The address of the narwhal primary

Link copied to clipboard
abstract val projectUrl: String?
Link copied to clipboard
abstract val proofOfPossession: <Error class: unknown class>?

This is a proof that the validator has ownership of the protocol private key

Link copied to clipboard
abstract val protocolPublicKey: <Error class: unknown class>?

The public key bytes corresponding to the private key that the validator holds to sign transactions. For now, this is the same as AuthorityName.

Link copied to clipboard
abstract val stakingPool: StakingPool

Staking pool for this validator.

Link copied to clipboard
abstract val votingPower: <Error class: unknown class>?

The voting power of this validator, which might be different from its stake amount.

Link copied to clipboard
abstract val workerAddress: String?

The address of the narwhal worker

Link copied to clipboard
abstract val workerPublicKey: <Error class: unknown class>?

The public key bytes corresponding to the Narwhal Worker

Functions

Link copied to clipboard
Link copied to clipboard
fun Validator.copy(body: <Error class: unknown class>.() -> Unit = {}): Validator

Copies the original message, including unknown fields.