Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Udapi

Hierarchy

Index

Constructors

constructor

  • new Udapi(url: string): Udapi

Properties

name

name: "UDAPI" = "UDAPI"

Methods

address

  • address(domain: string, currencyTicker: string): Promise<string>
  • Resolves the domain via UD API mirror

    Parameters

    • domain: string

      domain name to be resolved

    • currencyTicker: string

      currencyTicker such as

      • ZIL
      • BTC
      • ETH

    Returns Promise<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

owner

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

record

  • record(domain: string, key: string): Promise<string>
  • Looks up for an arbitrary key inside the records of certain domain

    Parameters

    • domain: string

      domain name

    • key: string

      key to look for

    Returns Promise<string>

resolve

serviceName

Generated using TypeDoc