Represents a Symbol address.

Hierarchy (view full)

Constructors

  • Creates a Symbol address.

    Parameters

    • addressInput: string | Uint8Array | Address

      Input string, byte array or address.

    Returns Address

Properties

bytes: Uint8Array

Underlying bytes.

ENCODED_SIZE: number

Length of encoded address string.

NAME: string

Byte array name (required because constructor.name is dropped during minification).

SIZE: number

Byte size of raw address.

Methods

  • Returns representation of this object that can be stored in JSON.

    Returns string

    JSON-safe representation of this object.

  • Attempts to convert this address into a namespace id.

    Returns models.NamespaceId

    Namespace id if this adresss is an alias, undefined otherwise.

  • Returns string representation of this object.

    Returns string

    String representation of this object

  • Creates an address from a decoded address hex string (typically from REST).

    Parameters

    • hexString: string

      Decoded address hex string.

    Returns Address

    Equivalent address.

  • Creates an address from a namespace id.

    Parameters

    • namespaceId: models.NamespaceId

      Namespace id.

    • networkIdentifier: number

      Network identifier byte.

    Returns Address

    Address referencing namespace id.