vnsUtils: {
    lookupAddress: ((thorClient: ThorClient, address: string) => Promise<string>);
    lookupAddresses: ((thorClient: ThorClient, addresses: string[]) => Promise<string[]>);
    resolveName: ((thorClient: ThorClient, name: string) => Promise<string>);
    resolveNames: ((blocksModule: BlocksModule, transactionsModule: TransactionsModule, names: string[]) => Promise<string[]>);
} = ...

Type declaration

  • lookupAddress: ((thorClient: ThorClient, address: string) => Promise<string>)
      • (thorClient, address): Promise<string>
      • Returns a single primary name for a given address resolved at vet.domains

        Parameters

        • thorClient: ThorClient

          The thor client instance to use.

        • address: string

          The address to lookup

        Returns Promise<string>

        The name or null

  • lookupAddresses: ((thorClient: ThorClient, addresses: string[]) => Promise<string[]>)
      • (thorClient, addresses): Promise<string[]>
      • Returns a list of names or null for addresses primary names resolved by vet.domains. Reverse lookup of name to address is verified.

        Parameters

        • thorClient: ThorClient

          The thor client instance to use.

        • addresses: string[]

          The addresses to lookup

        Returns Promise<string[]>

        The list of the same size of addresses with the resolved primary names or null

  • resolveName: ((thorClient: ThorClient, name: string) => Promise<string>)
      • (thorClient, name): Promise<string>
      • Returns a single address or null for a name resolved at vet.domains

        Parameters

        • thorClient: ThorClient

          The thor client instance to use.

        • name: string

          The name to resolve

        Returns Promise<string>

        The address or null

  • resolveNames: ((blocksModule: BlocksModule, transactionsModule: TransactionsModule, names: string[]) => Promise<string[]>)
      • (blocksModule, transactionsModule, names): Promise<string[]>
      • Returns a list of addresses or null for names resolved by vet.domains

        Parameters

        Returns Promise<string[]>

        The list of the same size of names with the resolved address or null