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
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
"UNS" or "ZNS" (uses keccak256 or sha256 algorithm respectively)
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.
domain name to be checked
Checks weather the domain name matches the hash
domain name to check against
hash obtained from the blockchain
"UNS" or "ZNS" (uses keccak256 or sha256 algorithm respectively)
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
"UNS" or "ZNS" (uses keccak256 or sha256 algorithm respectively)
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 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
Returns the domain that is the primary resolution of the provided address
owner's address
Promise
Returns the token ID that is the primary resolution of the provided address
owner's address
Promise
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 for 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 uns
configured Resolution object
Creates a resolution instance with configured provider
an object that describes what network to use when connecting UNS 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 UNS default is mainnet
Creates a resolution instance with configured provider
an object that describes what network to use when connecting UNS 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 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 uns
infura project id
an optional object that describes what network to use when connecting 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://eth-mainnet.alchemyapi.io/v2/GmQ8X1FHf-WDEry0BBSn0RgjVhjHkRmS", network: "mainnet" } } }); let domain = "brad.zil"; resolution.addr(domain, "eth").then(addr => console.log(addr));;