Skip to content

Account Migration Counts

Count an account's ENSv1 vs ENSv2 domains to gauge its migration progress.

Run in ENSAdmin
GraphQL
query AccountMigratedNames($address: Address!) {
account(by: { address: $address }) {
v1DomainsCount: domains(where: { version: ENSv1 }) { totalCount }
v2DomainsCount: domains(where: { version: ENSv2 }) { totalCount }
}
}
Variables
{
"address": "0xffffffffff52d316b7bd028358089bc8066b8f80"
}
Output
{
"data": {
"account": {
"v1DomainsCount": {
"totalCount": 6
},
"v2DomainsCount": {
"totalCount": 1249
}
}
}
}

Output matches a point in time snapshot GraphQL response from our sepolia-v2 ENSNode instance. Live output depends on the configuration of your ENSNode instance and ENS state updates.

Back to Examples