Skip to content

Domain By Name

Load a domain by interpreted name, including v1/v2 discriminated fields and subregistry on ENSv2.
Run in ENSAdmin
GraphQL
query DomainByName($name: InterpretedName!) {
domain(by: {name: $name}) {
__typename
id
label { interpreted hash }
canonical { name { interpreted } node path { id } }
owner { address }
subregistry { contract { chainId address } }
... on ENSv1Domain {
rootRegistryOwner { address }
}
}
}
Variables
{
"name": "roppp.eth"
}
Output
{
"data": {
"domain": {
"__typename": "ENSv2Domain",
"id": "11155111-0x64c81210d0e580cfc7746f3fb910bf0e8f6378e1-88275407146030613359050872632052369891139576190404928761656352489271755538432",
"label": {
"interpreted": "roppp",
"hash": "0xc32a1c1f67a98f2a48153a0e85ddb762207044cc7beb9517b6da41c1a4cc166b"
},
"subregistry": null,
"owner": {
"address": "0x801d2e48d378f161dba7ad7ad002ad557714c191"
},
"canonical": {
"name": {
"interpreted": "roppp.eth"
},
"node": "0x39095c3dfb872d6441c95547f88591e7fb97014eef30cabe3df12a9b2a64dbe8",
"path": [
{
"id": "11155111-0x835f0b284e78cd3f358bcf6cba3b53809f09b79e-35894389512221139346028120028875095598761990588366713962827482865183915769856"
},
{
"id": "11155111-0x64c81210d0e580cfc7746f3fb910bf0e8f6378e1-88275407146030613359050872632052369891139576190404928761656352489271755538432"
}
]
}
}
}
}

Output matches a GraphQL Response snapshot; live output depends on your ENSNode instance.

Back to Examples