Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Delegation

Stores information about the status of a delegation between a delegator and validator, fetched from the blockchain.

Hierarchy

Index

Constructors

  • new Delegation(delegator_address: string, validator_address: string, shares: Dec, balance: Coin): Delegation
  • Parameters

    • delegator_address: string

      delegator's account address

    • validator_address: string

      validator's operator address

    • shares: Dec

      delegator's shares

    • balance: Coin

      balance of the delegation

    Returns Delegation

Properties

balance: Coin
delegator_address: string
shares: Dec
validator_address: string

Methods

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

    • Optional isClassic: boolean

    Returns string

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

    • Optional isClassic: boolean

    Returns string

  • toProto(): DelegationResponse