Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace AccAddress

Index

Functions

  • Converts a validator address into an account address

    Parameters

    • address: string

      validator address

    Returns AccAddress

  • getPrefix(address: string): string
  • Get the prefix of an account address

    Parameters

    • address: string

      accont address

    Returns string

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

    Parameters

    • data: string

      string to check

    • Optional prefix: string

      expected chain prefix

    Returns boolean