Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Zns

Hierarchy

Index

Constructors

constructor

Properties

name

name: ZNS = NamingServiceName.ZNS

network

network: string

Optional registryAddress

registryAddress: string

url

url: string

Methods

Resolution

address

  • address(domain: string, currencyTicker: string): Promise<string>

childhash

  • childhash(parent: nodeHash, label: string): string

email

  • email(domain: string): Promise<string>

Protected ensureSupportedDomain

  • ensureSupportedDomain(domain: string): void

httpUrl

  • httpUrl(domain: string): Promise<string>

Protected ignoreResolutionError

  • ignoreResolutionError<T>(code: ResolutionErrorCode | undefined, promise: Promise<T>): Promise<T | undefined>

ipfsHash

  • ipfsHash(domain: string): Promise<string>

Protected isResolutionError

isSupportedDomain

  • isSupportedDomain(domain: string): boolean

isSupportedNetwork

  • isSupportedNetwork(): boolean

namehash

  • namehash(domain: string): string

owner

  • owner(domain: string): Promise<string | null>

record

  • record(domain: string, field: string): Promise<string>

records

  • records(domain: string): Promise<Dictionary<string>>
  • Parameters

    • domain: string

    Returns Promise<Dictionary<string>>

    ZNS resolver records in an plain key-value format

resolve

resolver

  • resolver(domain: string): Promise<string>

serviceName

Generated using TypeDoc