Skip to content

Offchain Name

Resolve an offchain (CCIP-Read) name. Resolvable-but-unindexed names surface as an `UnindexedDomain` instead of returning `null`.

Run in ENSAdmin
GraphQL
query OffchainName($name: InterpretedName!) {
domain(by: { name: $name }) {
# Resolvable-but-unindexed names (offchain / CCIP-Read) surface as UnindexedDomain
__typename
id
canonical { name { interpreted } }
resolver {
# the wildcard Resolver that ENS Forward Resolution (ENSIP-10) lands on
effective {
extended
contract { chainId address }
}
}
resolve {
records {
addresses(coinTypes: [60]) { coinType address }
texts(keys: ["avatar", "com.twitter", "description"]) { key value }
}
}
}
}
Variables
{
"name": "patricio.onpoap.eth"
}
Output
{
"data": {
"domain": {
"__typename": "UnindexedDomain",
"id": "unindexed-1-0x00000000000c2e074ec69a0dfb2997ba6c7d2e1e-0x93cdeb708b7545dc668eb9280176169d1c33cfd8ed6f04690a0bcc88a93fc4ae-0xe808c6fcb243982a403d6d2157d91467a287ca493d65a4f08f054693d63b7224",
"canonical": {
"name": {
"interpreted": "patricio.onpoap.eth"
}
},
"resolver": {
"effective": {
"extended": true,
"contract": {
"chainId": 1,
"address": "0xe5a0277018879679d18ccdb66b52bd06f7fe95fd"
}
}
},
"resolve": {
"records": {
"addresses": [
{
"coinType": 60,
"address": "0x511484296e7bcb33582dbb0861b6921b40e54330"
}
],
"texts": [
{
"key": "avatar",
"value": null
},
{
"key": "com.twitter",
"value": null
},
{
"key": "description",
"value": null
}
]
}
}
}
}
}

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