Skip to main content
Version: 2.2

ENS Lookup By Domain

Don't have an API key yet?

Start using this API for your project today.

Get your free API key
GEThttps://deep-index.moralis.io/api/v2.2/resolve/ens/:domain

Resolve a specific ENS domain to its address.

PATH PARAMS
domainstringrequired
The domain to be resolved
Responses
API KEY
import Moralis from 'moralis';

try {
await Moralis.start({
apiKey: "YOUR_API_KEY"
});

const response = await Moralis.EvmApi.resolve.resolveENSDomain({
"domain": "vitalik.eth"
});

console.log(response.raw);
} catch (e) {
console.error(e);
}
Response Example
{
"address": "0x057Ec652A4F150f7FF94f089A38008f49a0DF88e"
}