Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Resolution

Hierarchy

  • Resolution

Index

Constructors

constructor

  • new Resolution(__namedParameters?: object): Resolution

Properties

blockchain

blockchain: Blockchain | boolean

Optional web3Provider

web3Provider: Web3Provider

Methods

address

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

    • domain: string
    • currencyTicker: string

    Returns Promise<string | null>

    A promise that resolves in an address or null

addressOrThrow

  • addressOrThrow(domain: string, currencyTicker: string): Promise<string>
  • Parameters

    • domain: string
    • currencyTicker: string

    Returns Promise<string>

childhash

email

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

    • domain: string

    Returns Promise<string>

    A Promise that resolves in an email address configured for this domain whois

httpUrl

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

ipfsHash

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

ipfsRedirect

  • ipfsRedirect(domain: string): Promise<string>
  • Parameters

    • domain: string

    Returns Promise<string>

    A Promise that resolves in redirect url

isSupportedDomain

  • isSupportedDomain(domain: string): boolean

isSupportedDomainInNetwork

  • isSupportedDomainInNetwork(domain: string): boolean

isValidHash

  • isValidHash(domain: string, hash: string): boolean

namehash

  • namehash(domain: string): string
  • Parameters

    • domain: string

    Returns string

    Namehash either for ENS or ZNS

owner

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

    • domain: string

    Returns Promise<string | null>

    An owner address of the domain

resolve

resolver

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

reverse

  • reverse(address: string, currencyTicker: string): Promise<string | null>
  • Parameters

    • address: string
    • currencyTicker: string

    Returns Promise<string | null>

    Domain name attached to this address

serviceName

Static infura

Static jsonRPCprovider

Static provider

Generated using TypeDoc