Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AddressPrefix

Represents a TurtleCoin address prefix

Hierarchy

  • AddressPrefix

Index

Constructors

Accessors

Methods

Constructors

constructor

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

    Parameters

    • Optional decimal: undefined | number
    • Optional base58: undefined | string

    Returns AddressPrefix

Accessors

base58

  • get base58(): string

decimal

  • get decimal(): number

hex

  • get hex(): string

size

  • get size(): number

varint

  • get varint(): Buffer

Methods

Static from

  • 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