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.

SELECT type, count(*) FROM ensindexer_0.domains
WHERE owner_id = '0x70997970c51812dc3a010c7d01b50e0d17dc79c8'
GROUP BY type;
View Query Result
[
  {
    "type": "ENSv1Domain",
    "count": 2
  },
  {
    "type": "ENSv2Domain",
    "count": 14
  }
]