Options
All
  • Public
  • Public/Protected
  • All
Menu

The address structure describes an address with its network

Hierarchy

  • Address

Index

Properties

Readonly networkType

networkType: NetworkType

Methods

encodeUnresolvedAddress

  • encodeUnresolvedAddress(networkType: NetworkType): Uint8Array

encoded

  • encoded(): string

equals

  • equals(address: any): boolean

plain

  • plain(): string

pretty

  • pretty(): string

toBuilder

  • toBuilder(): AddressDto

toDTO

  • toDTO(): any

Static createFromEncoded

  • createFromEncoded(encoded: string): Address
  • Create an Address from a given encoded address.

    Parameters

    • encoded: string

      address. Expected format: 9085215E4620D383C2DF70235B9EF7607F6A28EF6D16FD7B9C.

    Returns Address

Static createFromPublicKey

Static createFromRawAddress

  • createFromRawAddress(rawAddress: string): Address
  • Create an Address from a given raw address.

    Parameters

    • rawAddress: string

      Address in string format. ex: SB3KUBHATFCPV7UZQLWAQ2EUR6SIHBSBEOEDDDF3 or SB3KUB-HATFCP-V7UZQL-WAQ2EU-R6SIHB-SBEOED-DDF3

    Returns Address

Static isValidEncodedAddress

  • isValidEncodedAddress(encoded: string): boolean
  • Determines the validity of an encoded address string.

    Parameters

    • encoded: string

      The encoded address string. Expected format: 6823BB7C3C089D996585466380EDBDC19D4959184893E38C

    Returns boolean

    true if the encoded address string is valid, false otherwise.

Static isValidRawAddress

  • isValidRawAddress(rawAddress: string): boolean
  • Determines the validity of an raw address string.

    Parameters

    • rawAddress: string

      The raw address string. Expected format VATNE7Q5BITMUTRRN6IB4I7FLSDRDWZA35C4KNQ

    Returns boolean

    true if the raw address string is valid, false otherwise.

Generated using TypeDoc