Resolve

resolveDomain

Resolves an Unstoppable domain and returns the address (asynchronous).

Options:

  • currency(optional): The currency to query. Available values : eth, 0x1. Default value : eth.
  • domain (required): Domain to be resolved.
1
// get polygon NFTs for address
2
const options = { currency: 'eth', domain: 'brad.crypto' };
3
const resolve = await Moralis.Web3API.resolve.resolveDomain(options );
Copied!

Example result:

1
{
2
"address": "0x057Ec652A4F150f7FF94f089A38008f49a0DF88e"
3
}
Copied!

Demo: Resolving ENS and Unstoppable Domains

Practical example showing how ENS Domain resolution works in Ethereum. Also demonstrating Unstoppable Domains.
Last modified 3mo ago