Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Address

Address represents a compressed equivalent of a public key used as an address for transacting.

class

Address

Hierarchy

  • Address

Index

Properties

Private address

address: string

The loaded address

type

{string}

memberof

Address

Methods

toString

  • toString(): string
  • Return a string format of the address

    Returns string

Static from

  • Instantiate an Address instance from a given address string

    static
    throws

    InvalidAddress

    memberof

    Address

    Parameters

    • address: string

    Returns Address

Static getValidationError

  • getValidationError(address: string): null | Error
  • Check whether a given address is valid. If not valid, the specific validation error is returned. It returns null if the address is valid.

    static
    memberof

    Address

    Parameters

    • address: string

      The address to check

    Returns null | Error

    InvalidAddressVersion | InvalidAddressSize }| InvalidAddressFormat

Static isValid

  • isValid(address: string): boolean
  • Check whether an address is valid

    static
    memberof

    Address

    Parameters

    • address: string

      The address to check

    Returns boolean