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, order: {
by: NAME,
dir: ASC
}) {
edges {
node {
canonical { name { interpreted beautified } }
}
}
}
}
}
Variables
{
"name": "base.eth"
}
Output
{
"data": {
"domain": {
"canonical": {
"name": {
"interpreted": "base.eth",
"beautified": "base.eth"
}
},
"subdomains": {
"edges": [
{
"node": {
"canonical": {
"name": {
"interpreted": "¢¢¢¢¢¢¢¢¢¢.base.eth",
"beautified": "¢¢¢¢¢¢¢¢¢¢.base.eth"
}
}
}
},
{
"node": {
"canonical": {
"name": {
"interpreted": "¢¢¢¢¢.base.eth",
"beautified": "¢¢¢¢¢.base.eth"
}
}
}
},
{
"node": {
"canonical": {
"name": {
"interpreted": "¢hampagne¢arey.base.eth",
"beautified": "¢hampagne¢arey.base.eth"
}
}
}
},
{
"node": {
"canonical": {
"name": {
"interpreted": "$$$$$$$$$$$$$$$$$$$$.base.eth",
"beautified": "$$$$$$$$$$$$$$$$$$$$.base.eth"
}
}
}
},
{
"node": {
"canonical": {
"name": {
"interpreted": "$$$$$$$$$$$$$$$$$$$.base.eth",
"beautified": "$$$$$$$$$$$$$$$$$$$.base.eth"
}
}
}
},
{
"node": {
"canonical": {
"name": {
"interpreted": "$$$$$$$$$$$$$$$$$$.base.eth",
"beautified": "$$$$$$$$$$$$$$$$$$.base.eth"
}
}
}
},
{
"node": {
"canonical": {
"name": {
"interpreted": "$$$$$$$$$$$$$$$$$.base.eth",
"beautified": "$$$$$$$$$$$$$$$$$.base.eth"
}
}
}
},
{
"node": {
"canonical": {
"name": {
"interpreted": "$$$$$$$$$$$$$$$$.base.eth",
"beautified": "$$$$$$$$$$$$$$$$.base.eth"
}
}
}
},
{
"node": {
"canonical": {
"name": {
"interpreted": "$$$$$$$$$$$$$$$.base.eth",
"beautified": "$$$$$$$$$$$$$$$.base.eth"
}
}
}
},
{
"node": {
"canonical": {
"name": {
"interpreted": "$$$$$$$$$$$$$$.base.eth",
"beautified": "$$$$$$$$$$$$$$.base.eth"
}
}
}
}
]
}
}
}
}

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

Back to Examples