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 }
name
owner { address }
... on ENSv1Domain {
rootRegistryOwner { address }
}
... on ENSv2Domain {
subregistry {
contract { chainId address }
}
}
}
}

Payload and transport examples

{
"name": "test-name.eth"
}

Response is an illustrative snapshot; live data depends on your ENSNode instance. The curl tab shows a POST to https://api.v2-sepolia.ensnode.io/api/omnigraph

Back to Examples