Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Redelegation

A redelegation is when a delegator decides to stop staking with one validator and transfer their delegation to another validator. Rather than unbonding (which takes some time) and re-staking, the funds can be redelegated immediately if a Redelegation.Entry can be created.

A redelegation, like an unbonding delegation, is implemented through Redelegation.Entry objects, limited by the max_entry parameter in the staking module params. For each pair of source and target validators, you cannot redelegate more times than the amount of entries. Entries are cleared when the redelegation is completed, the same amount of time as unbonding.

Hierarchy

Index

Constructors

constructor

  • new Redelegation(delegator_address: string, validator_src_address: string, validator_dst_address: string, entries: Redelegation.Entry[]): Redelegation
  • Parameters

    • delegator_address: string

      delegator's account address

    • validator_src_address: string

      source validator's operator address (from)

    • validator_dst_address: string

      target validator's operator address (to)

    • entries: Redelegation.Entry[]

      entries

    Returns Redelegation

Properties

delegator_address

delegator_address: string

entries

entries: Redelegation.Entry[]

validator_dst_address

validator_dst_address: string

validator_src_address

validator_src_address: string

Methods

toAmino

toAminoJSON

  • toAminoJSON(): string
  • Returns string

toData

toJSON

  • toJSON(): string
  • Returns string

toProto

  • toProto(): RedelegationResponse

Static fromAmino

Static fromData

Static fromProto