Resolves a given domain to the assigned address.

  • Parameters

    • domain: string

      Domain to resolve (e.g. domains.azero)

    • Optionaloptions: Partial<ResolveDomainOptions>

      Options (see ResolveDomainOptions definition)

    Returns Promise<{
        address: null | string;
        error: undefined;
    } | {
        address: undefined;
        error: ResolveDomainError;
    }>

    Address as string (null, if domain not found) or error