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", "UNS" 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
domain name
A Promise of whether or not the domain is available
domain name
A Promise of whether or not the domain belongs to a wallet
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
Retrieves address of registry contract used for domain
domain name
Promise
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 UNS.
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
Retrieves address of registry contract used for domain
domain name
Registry contract address
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 | UNS | ZNS
domain name to look for
Retrieves the tokenURI from the registry smart contract.
domain name
the ERC721Metadata#tokenURI contract method result
Retrieves the data from the endpoint provided by tokenURI from the registry smart contract.
domain name
the JSON response of the token URI endpoint
Resolves given domain name to a verified twitter handle
domain name to be resolved
A promise that resolves in a verified twitter handle
Retrieves the domain name from tokenId by parsing registry smart contract event logs.
domain hash
nameservice which is used for lookup
the domain name retrieved from token metadata
AutoConfigure the blockchain network between different testnets for ENS and UNS We make a "net_version" JSON RPC call to the blockchain either via url or with the help of given provider.
configuration object for ens and uns
configured Resolution object
Creates a resolution instance with configured provider
an object that describes what network to use when connecting UNS and ENS 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
an object that describes what network to use when connecting ENS or UNS default is mainnet
Creates a resolution instance with configured provider
an object that describes what network to use when connecting UNS, ENS, or ZNS default is mainnet
Create a resolution instance from web3 0.x version provider
Ethereum network configuration with 0.x version provider from web3 ( must implement sendAsync(payload, callback) )
Create a resolution instance from web3 1.x version provider
an optional object with 1.x version provider from web3 ( must implement send(payload, callback) ) that describes what network to use when connecting ENS or UNS default is mainnet
Creates a resolution instance with configured provider
any provider compatible with EIP-1193
an optional object that describes what network to use when connecting ZNS default is mainnet
Creates a resolution with configured infura id for ens and uns
infura project id
an optional object that describes what network to use when connecting ENS or UNS default is mainnet
Generated using TypeDoc
Blockchain domain Resolution library - Resolution.
import Resolution from '@unstoppabledomains/resolution'; let resolution = new Resolution({ blockchain: { uns: { url: "https://mainnet.infura.io/v3/12351245223", network: "mainnet" } } }); let domain = "brad.zil"; resolution.addr(domain, "eth").then(addr => console.log(addr));;