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

  • 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
consensus_pubkey: ValConsPublicKey
delegator_shares: Dec
description: Description
jailed: boolean
min_self_delegation: Int
operator_address: string
status: BondStatus
tokens: Int
unbonding_height: number
unbonding_time: Date

Methods

  • toAminoJSON(isClassic?: boolean): string
  • Parameters

    • Optional isClassic: boolean

    Returns string

  • toJSON(isClassic?: boolean): string
  • Parameters

    • Optional isClassic: boolean

    Returns string

  • toProto(): Validator