Lookup domain
Resolves a domain name to wallet addresses across multiple providers (ENS, Unstoppable Domains, Lens)
Supported on: Ethereum Polygon
Parameters
name
* string queryDomain name to resolve
Request Body
This request doesn’t have any request body.
JavaScript
Copy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
const axios = require('axios');
async function httpCall() {
const url = 'https://api.1inch.com/domains/v2.0/lookup';
const config = {
headers: {
Authorization: `Bearer ${API_KEY}`,
},
params: {
name: 'vitalik.eth',
},
paramsSerializer: {
indexes: null,
},
};
const body = {};
try {
const response = await axios.get(url, body, config);
console.log(response.data);
} catch (error) {
console.error(error);
}
}
Returns
200
404
Domain lookup response containing results from all providers
result
* array Array of resolved addresses from different providers, or null if not found
items
ProviderResponse object Domain resolution result from a single provider
protocol
* string Domain protocol provider (e.g., ens, ud, lens)
address
* string Resolved wallet address
checkUrl
* string URL to verify the domain ownership
domain
string Domain name associated with the address
JSON
Copy
1
2
3
4
5
6
7
8
9
10
11
{
"result": [
{
"protocol": "string",
"address": "string",
"checkUrl": "string",
"domain": "string"
}
]
}