Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Slashing

In Proof-of-Stake blockchain, validators will get block provisions by staking their token. But if they failed to keep online, they will be punished by slashing a small portion of their staked tokens. The offline validators will be removed from the validator set and put into jail, which means their voting power is zero. During the jail period, these nodes are not even validator candidates. Once the jail period ends, they can send unjail transactions to free themselves and become validator candidates again.

More Details

Hierarchy

  • Slashing

Index

Methods

queryParams

  • Query on-chain parameters of Slashing

    since

    v1.0

    Returns Promise<SlashingParams>

querySigningInfo

  • querySigningInfo(bech32ConsAddress: string, height?: undefined | number): Promise<ValidatorSigningInfo>
  • Query a validator's signing information

    since

    v0.17

    Parameters

    • bech32ConsAddress: string

      Bech32 prefixed validator consensus address

    • Optional height: undefined | number

      Block height to query, omit to get most recent provable block

    Returns Promise<ValidatorSigningInfo>

unjail

  • Unjail a validator previously jailed

    since

    v0.17

    Parameters

    Returns Promise<TxResult>

Generated using TypeDoc