Options
All
  • Public
  • Public/Protected
  • All
Menu

Unstoppabledomains resolution library

Index

Type aliases

Api

Api: { api: true; url?: undefined | string }

Type declaration

  • api: true
  • Optional url?: undefined | string

AutoNetworkConfigs

AutoNetworkConfigs: { cns?: { url: string } | { provider: Provider } }

Type declaration

  • Optional cns?: { url: string } | { provider: Provider }

CnsSource

CnsSource: NamingServiceSource & { network: CnsSupportedNetworks; proxyReaderAddress?: undefined | string }

CnsSupportedNetworks

CnsSupportedNetworks: typeof type

ConfigurationErrorOptions

ConfigurationErrorOptions: { dependency?: undefined | string; method?: ResolutionMethod; version?: undefined | string }

Explains Resolution Error options

Type declaration

  • Optional dependency?: undefined | string
  • Optional method?: ResolutionMethod
  • Optional version?: undefined | string

CryptoRecords

CryptoRecords: Record<string, string>

DnsRecordsErrorHandler

DnsRecordsErrorHandler: (error: DnsRecordsErrorOptions) => string

Type declaration

DnsRecordsErrorOptions

DnsRecordsErrorOptions: { recordType?: DnsRecordType }

Explains DnsRecords Error options

Type declaration

DomainData

DomainData: { owner: string; records: CryptoRecords; resolver: string }

Type declaration

NamehashOptions

NamehashOptions: { format?: "dec" | "hex"; prefix?: undefined | false | true }

Type declaration

  • Optional Readonly format?: "dec" | "hex"
  • Optional Readonly prefix?: undefined | false | true

NamingServiceSource

NamingServiceSource: { url?: undefined | string } | { provider?: Provider }

ProviderMethod

ProviderMethod: (payload: JsonRpcPayload, callback: (error: Error | null, result?: JsonRpcResponse) => void) => void

Type declaration

ResolutionErrorOptions

ResolutionErrorOptions: { currencyTicker?: undefined | string; domain?: undefined | string; method?: ResolutionMethod; methodName?: undefined | string; namingService?: undefined | string; providerMessage?: undefined | string; recordName?: undefined | string }

Explains Resolution Error options

Type declaration

  • Optional currencyTicker?: undefined | string
  • Optional domain?: undefined | string
  • Optional method?: ResolutionMethod
  • Optional methodName?: undefined | string
  • Optional namingService?: undefined | string
  • Optional providerMessage?: undefined | string
  • Optional recordName?: undefined | string

ResolutionMethod

ResolutionMethod: NamingServiceName | "UDAPI"

ResolutionResponse

ResolutionResponse: { addresses: {}; meta: { namehash: string; owner: string | null; resolver: string; ttl: number; type: string }; records: {} }

ResolutionResulution

property

{Object} addresses - Resolution addresses for various currency addresses attached to the domain

property

{Object} meta - meta information about the owner of the domain

Type declaration

  • addresses: {}
    • [key: string]: string
  • meta: { namehash: string; owner: string | null; resolver: string; ttl: number; type: string }
    • namehash: string
    • owner: string | null
    • resolver: string
    • ttl: number
    • type: string
  • records: {}
    • [key: string]: string

SourceConfig

SourceConfig: { cns?: CnsSource | Api; zns?: ZnsSource | Api }

Type declaration

ZnsSource

ZnsSource: NamingServiceSource & { network: ZnsSupportedNetworks; registryAddress?: undefined | string }

ZnsSupportedNetworks

ZnsSupportedNetworks: typeof type

Variables

Const NamehashOptionsDefault

NamehashOptionsDefault: { format: "hex"; prefix: true } = {format: 'hex', prefix: true} as const

Type declaration

  • format: "hex"
  • prefix: true

Const UDApiDefaultUrl

UDApiDefaultUrl: "https://unstoppabledomains.com/api/v1" = "https://unstoppabledomains.com/api/v1"

Functions

isApi

  • isApi(obj: any): obj is Api

Object literals

Const UnclaimedDomainResponse

UnclaimedDomainResponse: object

addresses

addresses: {}

Type declaration

records

records: {}

Type declaration

meta

meta: object

namehash

namehash: string = ""

owner

owner: null = null

resolver

resolver: string = ""

ttl

ttl: number = 0

type

type: string = ""

Generated using TypeDoc