Skip to main content

ENS Lookup By Domain

GEThttps://deep-index.moralis.io/api/v2/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"
}