Resolves a given address to the assigned primary domain(s). NOTE: When an address holds primary domains within multiple registries (TLDs), all primary domains will be returned. This case is currently not possible, so allPrimaryDomains will always return an array with 0 or 1 primary domain.

  • Parameters

    • address: string

      Address to resolve (e.g. 5EFJEY4DG2FnzcuCZpnRjjzT4x7heeEXuoYy1yAoUmshEhAP)

    • Optionaloptions: Partial<ResolveAddressOptions>

      Options (see ResolveOptions definition)

    Returns Promise<{
        allPrimaryDomains: string[];
        error: undefined;
        primaryDomain: null | string;
    } | {
        allPrimaryDomains: undefined;
        error: ResolveAddressError;
        primaryDomain: undefined;
    }>

    Primary domain(s) as string (null, if no primary domain found) or error