Account Domains
Run in ENSAdmin
Opens the hosted playground with this query pre-filled.
query AccountDomains(
$address: Address!
) {
account(by: { address: $address }) {
domains {
edges {
node {
label { interpreted }
name
}
}
}
}
} {
"address": "0x2f8e8b1126e75fde0b7f731e7cb5847eba2d2574"
} {
"data": {
"account": {
"domains": {
"edges": [
{
"node": {
"label": {
"interpreted": "sfmonicdebmig"
},
"name": "sfmonicdebmig.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": "0x2f8e8b1126e75fde0b7f731e7cb5847eba2d2574"
}
}
EOF
GraphQL
query AccountDomains( $address: Address!) { account(by: { address: $address }) { domains { edges { node { label { interpreted } name } } } }}Payload and transport examples
{ "address": "0x2f8e8b1126e75fde0b7f731e7cb5847eba2d2574"}
Response is an illustrative snapshot; live data depends on your ENSNode instance. The curl tab shows a POST to
/api/omnigraph on your
connection base URL (same as enssdk).