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

constructor

  • 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

balance: Coin

delegator_address

delegator_address: string

shares

shares: Dec

validator_address

validator_address: string

Methods

toAmino

toAminoJSON

  • toAminoJSON(): string
  • Returns string

toData

toJSON

  • toJSON(): string
  • Returns string

toProto

  • toProto(): DelegationResponse

Static fromAmino

Static fromData

Static fromProto