Skip to content

Domain Raw Records

For given name resolve raw records like `addresses`, `texts`, `contenthash` etc.
Run in ENSAdmin
GraphQL
query DomainRecords($name: InterpretedName!) {
domain(by: {name: $name}) {
canonical {
name {
interpreted
}
}
resolve {
records {
addresses(coinTypes: [60, 2147483658, 501]) {
coinType
address
}
texts(keys: ["description", "avatar", "url", "com.github", "com.twitter"]) {
key
value
}
contenthash
}
}
}
}
Variables
{
"name": "gregskril.eth"
}
Output
{
"data": {
"domain": {
"canonical": {
"name": {
"interpreted": "gregskril.eth"
}
},
"resolve": {
"records": {
"addresses": [
{
"coinType": 60,
"address": "0x179a862703a4adfb29896552df9e307980d19285"
},
{
"coinType": 2147483658,
"address": "0x179a862703a4adfb29896552df9e307980d19285"
},
{
"coinType": 501,
"address": "0x1350bfe02357c8bc583d7514f44ba2c31821d8739160e7b79a0a94bc113a4f73"
}
],
"texts": [
{
"key": "description",
"value": "I like baking and building apps on web3 protocols."
},
{
"key": "avatar",
"value": "https://gregskril.com/img/profile.jpg"
},
{
"key": "url",
"value": "https://gregskril.com/"
},
{
"key": "com.github",
"value": "gskril"
},
{
"key": "com.twitter",
"value": "gregskril"
}
],
"contenthash": "0xe30101701220f0bd3d5d672c6197d341797bb34d4a5e31fbb40c437fead8756213522b976ed9"
}
}
}
}
}

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

Back to Examples