Class Domain

Domain model that wraps the IDomain interface

Hierarchy

  • Domain

Implements

Constructors

Properties

createdAt: Date
expiresAt?: Date
name: string
owner: string
parentId?: string
records: Record<string, string | Buffer>
tld: string
tokenId: number

Accessors

Methods

  • Normalize the name by reversing the domain name, apply the toUnicode and by default remove the TLD

    Parameters

    • options:: {
          removeTLD: boolean;
      } = ...

      { removeTLD: true }

      • removeTLD: boolean

    Returns string

    Normalized domain name

  • Get the JSON representation of the domain

    Returns {
        createdAt: Date;
        expiresAt: undefined | Date;
        name: string;
        owner: string;
        parentId: undefined | string;
        records: Record<string, string | Buffer>;
        tld: string;
        tokenId: number;
    }

    • createdAt: Date
    • expiresAt: undefined | Date
    • name: string
    • owner: string
    • parentId: undefined | string
    • records: Record<string, string | Buffer>
    • tld: string
    • tokenId: number

Generated using TypeDoc