Skip to content

Domain Subdomains

Paginate direct child names under a parent domain.
Run in ENSAdmin
GraphQL
query DomainSubdomains($name: InterpretedName!) {
domain(by: {name: $name}) {
canonical { name { interpreted beautified } }
subdomains(first: 10) {
edges {
node {
canonical { name { interpreted beautified } }
}
}
}
}
}
Variables
{
"name": "eth"
}
Output
{
"data": {
"domain": {
"canonical": {
"name": {
"interpreted": "eth",
"beautified": "eth"
}
},
"subdomains": {
"edges": [
{
"node": {
"canonical": {
"name": {
"interpreted": "katrenpadu.eth",
"beautified": "katrenpadu.eth"
}
}
}
},
{
"node": {
"canonical": {
"name": {
"interpreted": "roppp.eth",
"beautified": "roppp.eth"
}
}
}
},
{
"node": {
"canonical": {
"name": {
"interpreted": "sfmpfv44d0mig.eth",
"beautified": "sfmpfv44d0mig.eth"
}
}
}
},
{
"node": {
"canonical": {
"name": {
"interpreted": "sfmpfv44d0res.eth",
"beautified": "sfmpfv44d0res.eth"
}
}
}
},
{
"node": {
"canonical": {
"name": {
"interpreted": "sfmpfvtoicv2ok.eth",
"beautified": "sfmpfvtoicv2ok.eth"
}
}
}
},
{
"node": {
"canonical": {
"name": {
"interpreted": "wrapnation.eth",
"beautified": "wrapnation.eth"
}
}
}
}
]
}
}
}
}

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

Back to Examples