Options
All
  • Public
  • Public/Protected
  • All
Menu

Represents a TurtleCoin address prefix

Hierarchy

  • AddressPrefix

Index

Constructors

  • new AddressPrefix(decimal?: number, base58?: string): AddressPrefix
  • Creates a new address prefix object

    Parameters

    • Optional decimal: number
    • Optional base58: string

    Returns AddressPrefix

Properties

m_base58?: string
m_decimal: number = ...

Accessors

  • get base58(): string
  • The Base58 encoded address prefix

    Returns string

  • get decimal(): number
  • The decimal encoded address prefix

    Returns number

  • get hex(): string
  • The hexadecimal encoded address prefix

    Returns string

  • get size(): number
  • The size of the address prefix in bytes

    Returns number

  • get varint(): Buffer
  • The varint encoded address prefix

    Returns Buffer

Methods

  • Creates a new address prefix object from a Base58 encoded address

    Parameters

    • address: string

      the public wallet address to decode to obtain the address prefix

    Returns AddressPrefix

    the address prefix

Generated using TypeDoc