Resolves given domain name to a specific currency address if exists
domain name to be resolved
A promise that resolves in an address
Resolves given domain name to a specific currency address if exists
domain name to be resolved
currency ticker like BTC, ETH, ZIL
A promise that resolves in an address or null
domain name
currency ticker such as
A specific currency address or throws an error
Returns all record keys of the domain. This method is strongly unrecommended for production use due to lack of support for many ethereum service providers and low performance Method is not supported by ENS
domain name
Resolve a chat id from the domain record
domain name to be resolved
A promise that resolves in chatId
Resolve a gundb public key from the domain record
domain name to be resolved
a promise that resolves in gundb public key
namehash of a parent domain
subdomain name
"ENS", "CNS" or "ZNS"
formatting options
a namehash of a subdomain with name label
Resolves the ipfs email field from whois configurations
domain name
A Promise that resolves in an email address configured for this domain whois
Resolves the httpUrl attached to domain
domain name
Resolves the IPFS hash configured for domain records on ZNS
domain name
Resolves the ipfs redirect url for a supported domain records
domain name
A Promise that resolves in redirect url
Checks if the domain name is valid according to naming service rules for valid domain names. Example: ENS doesn't allow domains that start from '-' symbol.
domain name to be checked
Checks if the domain is supported by the specified network as well as if it is in valid format
domain name to be checked
Checks weather the domain name matches the hash
domain name to check againt
hash obtained from the blockchain
domain name to be converted
formatting options
Produces a namehash from supported naming service in hex format with 0x prefix. Corresponds to ERC721 token id in case of Ethereum based naming service like ENS or CNS.
domain name
An owner address of the domain
domain name
a name of a record to be resolved
A record value promise for a given record name
domain name
Array of record keys to be resolved
A Promise with key-value mapping of domain records
Resolves the given domain
domain name to be resolved
A promise that resolves in an object
domain to look for
the resolver address for a specific domain
This method is only for ens at the moment. Reverse the ens address to a ens registered domain name
address you wish to reverse
currency ticker like BTC, ETH, ZIL
Domain name attached to this address
Returns the name of the service for a domain ENS | CNS | ZNS
domain name to look for
Resolves given domain name to a verified twitter handle
domain name to be resolved
A promise that resolves in a verified twitter handle
Resolves given domain name to a specific USDT chain address if exists
domain name to be resolved
chain version to look for such as ERC20, TRON, EOS, OMNI
A promise that resolves in an address
Creates a resolution instance with configured provider
any provider compatible with EIP-1193
Creates instance of resolution from provider that implements Ethers Provider#call interface.
This wrapper support only eth_call
method for now, which is enough for all the current Resolution functionality
provider object
Create a resolution instance from web3 0.x version provider
an 0.x version provider from web3 ( must implement sendAsync(payload, callback) )
Create a resolution instance from web3 1.x version provider
an 1.x version provider from web3 ( must implement send(payload, callback) )
Creates a resolution with configured infura id for ens and cns
infura project id
ethereum network name
Generated using TypeDoc
Blockchain domain Resolution library - Resolution.
import Resolution from '@unstoppabledomains/resolution'; let resolution = new Resolution({ blockchain: { ens: { url: "https://mainnet.infura.io/v3/12351245223", network: "mainnet" } } }); let domain = "brad.zil"; resolution.addr(domain, "eth").then(addr => console.log(addr));;