Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace ValConsAddress

Index

Functions

  • getPrefix(address: string): string
  • Get the prefix of a validator consensus address

    Parameters

    • address: string

      validator consensus address

    Returns string

  • validate(data: string, prefix?: string): boolean
  • Checks if a string is a Terra validator consensus address

    Parameters

    • data: string

      string to check

    • Optional prefix: string

      expected chain prefix

    Returns boolean