Skip to content

Account Domains

Count the Domains owned by an address, grouped by Domain type (ENSv1Domain vs ENSv2Domain) — a single query spanning both protocol versions. See Connect for setup.

SQL
SELECT type, count(*) FROM ensindexer_0.domains
WHERE owner_id = '0x70997970c51812dc3a010c7d01b50e0d17dc79c8'
GROUP BY type;
# typecount
1 ENSv1Domain 2
2 ENSv2Domain 14

Output matches a SQL response snapshot; live output depends on your ENSNode instance.