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

  • 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: string
entries: Redelegation.Entry[]
validator_dst_address: string
validator_src_address: string

Methods

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

    • Optional isClassic: boolean

    Returns string

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

    • Optional isClassic: boolean

    Returns string

  • toProto(): RedelegationResponse