Account Domains
Load domains owned by an address via the Omnigraph `account` root field.
Run in ENSAdmin
Open an interactive playground to execute this query on our sepolia-v2
ENSNode instance.
query AccountDomains(
$address: Address!
) {
account(by: { address: $address }) {
domains {
edges {
node {
label { interpreted }
name
}
}
}
}
} {
"address": "0x205d2686da3bf33f64c17f21462c51b5ead462cf"
} {
"data": {
"account": {
"domains": {
"edges": [
{
"node": {
"label": {
"interpreted": "5test"
},
"name": "5test.eth"
}
},
{
"node": {
"label": {
"interpreted": "666test"
},
"name": "666test.eth"
}
},
{
"node": {
"label": {
"interpreted": "999test"
},
"name": "999test.eth"
}
},
{
"node": {
"label": {
"interpreted": "indexerisfknworking"
},
"name": "indexerisfknworking.eth"
}
},
{
"node": {
"label": {
"interpreted": "oldnew"
},
"name": "oldnew.eth"
}
},
{
"node": {
"label": {
"interpreted": "test3wallet"
},
"name": "test3wallet.eth"
}
}
]
}
}
}
} # POST JSON to your ENSNode Omnigraph endpoint (same path enssdk uses).
curl -sS -X POST "https://api.v2-sepolia.ensnode.io/api/omnigraph" \
-H "Content-Type: application/json" \
-d @- <<'EOF'
{
"query": "query AccountDomains( $address: Address! ) { account(by: { address: $address }) { domains { edges { node { label { interpreted } name } } } } }",
"variables": {
"address": "0x205d2686da3bf33f64c17f21462c51b5ead462cf"
}
}
EOF
ENS Omnigraph GraphQL
query AccountDomains( $address: Address!) { account(by: { address: $address }) { domains { edges { node { label { interpreted } name } } } }}Payload and transport examples
{ "address": "0x205d2686da3bf33f64c17f21462c51b5ead462cf"}
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