UNPKG

@waku/discovery

Version:

Contains various discovery mechanisms: DNS Discovery (EIP-1459, Peer Exchange, Local Peer Cache Discovery.

20 lines (19 loc) 501 B
import type { DnsClient } from "@waku/interfaces"; export declare class DnsOverHttps implements DnsClient { private resolver; /** * Create new Dns-Over-Http DNS client. * * @throws {code: string} If DNS query fails. */ static create(): Promise<DnsOverHttps>; private constructor(); /** * Resolves a TXT record * * @param domain The domain name * * @throws if the query fails */ resolveTXT(domain: string): Promise<string[]>; }