Skip to content

Domain by Name

Fetch a Domain by its canonical name. Because canonical_name is materialized across both ENSv1 and ENSv2, the same lookup works regardless of protocol version. See Connect for setup.

SQL
SELECT
id,
type,
canonical_name,
canonical_node,
owner_id
FROM "ensindexer_0".domains
WHERE canonical_name = 'vitalik.eth'
AND canonical = true;
Output
# idtypecanonical_namecanonical_nodeowner_id
1
1-0x00000000000c2e074ec69a0dfb2997ba6c7d2e1e-0xee6c4522aab0003e8d14cd40a6af439055fd2577951148c14b6cea9a53475835
ENSv1Domain vitalik.eth 0xee6c4522aab0003e8d14cd40a6af439055fd2577951148c14b6cea9a53475835 0x220866b1a2219f40e72f5c628b65d54268ca3a9d

Output matches a point in time snapshot of ENSDb result from our Alpha Hosted ENSNode instance. Live output depends on the configuration of your ENSNode instance and also changes that may have happened in ENS since this point in time snapshot example response was captured.