An Address, as an immutable object.

Constructors

  • Creates an address object, given a raw string (whether a hex pubkey or a Bech32 address), a sequence of bytes, or another Address object.

    Parameters

    • Optional value: string | Address | Buffer

    Returns Address

Properties

valueHex: string = ""

Methods

  • Returns the bech32 representation of the address

    Returns string

  • Compares the address to another address

    Parameters

    Returns boolean

  • Returns the hex representation of the address (pubkey)

    Returns string

  • Returns whether the address is empty.

    Returns boolean

  • Returns the pubkey as raw bytes (buffer)

    Returns Buffer

  • Converts the address to a pretty, plain JavaScript object.

    Returns object

  • Returns the bech32 representation of the address

    Returns string

  • Performs address validation without throwing errors

    Parameters

    • value: string

    Returns boolean

  • Parameters

    • value: string

    Returns boolean

Generated using TypeDoc