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
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
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 weather the domain name matches the hash
domain name to check againt
hash obtained from the blockchain
Read multi-chain currency address if exists
domain name to be resolved
currency ticker (USDT, FTM, etc.)
chain version, usually means blockchain ( ERC20, BEP2, OMNI, etc. )
A promise that resolves in an adress
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
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
Creates a resolution instance with configured provider
any provider compatible with EIP-1193
an optional object that describes what network to use when connecting ENS or CNS default is mainnet
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
an optional object that describes what network to use when connecting ENS or CNS default is mainnet
Create a resolution instance from web3 0.x version provider
an 0.x version provider from web3 ( must implement sendAsync(payload, callback) )
Ethereum network configuration
Create a resolution instance from web3 1.x version provider
an 1.x version provider from web3 ( must implement send(payload, callback) )
an optional object that describes what network to use when connecting ENS or CNS default is mainnet
Creates a resolution with configured infura id for ens and cns
infura project id
an optional object that describes what network to use when connecting ENS or CNS default is mainnet
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));;