Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace ValAddress

Index

Functions

  • fromAccAddress(address: string, prefix: string): ValAddress
  • Converts a Terra account address to a validator address.

    Parameters

    • address: string

      account address to convert

    • prefix: string

      expected chain prefix

    Returns ValAddress

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

    Parameters

    • address: string

      validator address

    Returns string

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

    Parameters

    • data: string

      string to check

    • Optional prefix: string

      expected chain prefix

    Returns boolean