Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Validator

Stores information fetched from the blockchain about the current status of a validator. As an end user, you will not have to create an instance of this class, one will be generated for you to store information about a validator polled from the API functions in StakingAPI.

Hierarchy

Index

Constructors

constructor

  • new Validator(operator_address: string, consensus_pubkey: ValConsPublicKey, jailed: boolean, status: BondStatus, tokens: Int, delegator_shares: Dec, description: Description, unbonding_height: number, unbonding_time: Date, commission: Commission, min_self_delegation: Int): Validator
  • Parameters

    • operator_address: string

      validator's operator address

    • consensus_pubkey: ValConsPublicKey

      validator's consensus public key

    • jailed: boolean

      whether the current validator is jailed

    • status: BondStatus

      unbonded 0, unbonding 1, bonded 2

    • tokens: Int

      total Luna from all delegations (including self)

    • delegator_shares: Dec

      total shares of all delegators

    • description: Description

      validator's delegate description

    • unbonding_height: number

      if unbonding, height at which this validator began unbonding

    • unbonding_time: Date

      if unbonding, min time for the validator to complete unbonding

    • commission: Commission

      validator commission

    • min_self_delegation: Int

      minimum self delegation

    Returns Validator

Properties

commission

commission: Commission

consensus_pubkey

consensus_pubkey: ValConsPublicKey

delegator_shares

delegator_shares: Dec

description

description: Description

jailed

jailed: boolean

min_self_delegation

min_self_delegation: Int

operator_address

operator_address: string

status

status: BondStatus

tokens

tokens: Int

unbonding_height

unbonding_height: number

unbonding_time

unbonding_time: Date

Methods

toAmino

toAminoJSON

  • toAminoJSON(): string
  • Returns string

toData

toJSON

  • toJSON(): string
  • Returns string

toProto

  • toProto(): Validator

Static fromAmino

Static fromData

Static fromProto