diff --git a/src/index.ts b/src/index.ts index bbc5319..31921bf 100644 --- a/src/index.ts +++ b/src/index.ts @@ -51,6 +51,16 @@ const ZNSConnectClass = class { throw error; } } + +async checkDomain(domain: string): Promise { + try { + const domainData = await resolveDomain(domain); + return domainData.owner !== '0x0000000000000000000000000000000000000000'; + } catch (error) { + console.error('Error checking domain:', error); + return false; + } +} }; function ZNSConnect() {