Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Ens

Hierarchy

Index

Constructors

constructor

Properties

NetworkNameMap

NetworkNameMap: object = invert(this.NetworkIdMap)

Type declaration

name

name: ENS = NamingServiceName.ENS

network

network: string

Optional registryAddress

registryAddress: string

Protected registryContract

registryContract: Contract

url

url: string

Methods

address

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

Protected buildContract

  • buildContract(abi: any, address: any): Contract

Protected callMethod

  • callMethod(contract: Contract, methodname: string, params: string[]): Promise<any>

childhash

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

owner

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

resolve

reverse

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

    • address: string
    • currencyTicker: string

    Returns Promise<string>

    Domain name attached to this address

serviceName

Protected throwOwnershipError

  • throwOwnershipError(domain: any, ownerPromise: Promise<string>): Promise<void>

Object literals

UrlMap

UrlMap: object

goerli

goerli: string = "https://goerli.infura.io"

kovan

kovan: string = "https://kovan.infura.io"

mainnet

mainnet: string = "https://mainnet.infura.io"

rinkeby

rinkeby: string = "https://rinkeby.infura.io"

ropsten

ropsten: string = "https://ropsten.infura.io"

Generated using TypeDoc