Skip to content

ETH TLD By Version

Load the .eth TLD across protocol versions: one Domain per version, discriminated by `__typename` (ENSv1Domain / ENSv2Domain).

Run in ENSAdmin
GraphQL
query GetEthDomains {
domains(where: { name: { eq: "eth" } }) {
edges {
node {
__typename
id
}
}
}
}
Variables
{}
Output
{
"data": {
"domains": {
"edges": [
{
"node": {
"__typename": "ENSv2Domain",
"id": "11155111-0x835f0b284e78cd3f358bcf6cba3b53809f09b79e-35894389512221139346028120028875095598761990588366713962827482865183915769856"
}
},
{
"node": {
"__typename": "ENSv1Domain",
"id": "11155111-0xb6fb46e1458915dd828633d91e1df8e4c3f2d4dd-0x93cdeb708b7545dc668eb9280176169d1c33cfd8ed6f04690a0bcc88a93fc4ae"
}
}
]
}
}
}

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