The Domain API fetches information on blockchain domains, which are user-friendly names linked to specific blockchain addresses. Example: ENS.
This API can also resolve a domain name into a wallet/contract address.
Inputs & Filters
inputDomainFilter {isPrimary: # True/False - allows to filter out domains which are set/not set as primaryname: # Domain name, e.g. "vitalik.eth" or a subdomain, e.g. "illionaire.illionaire.eth"owner: # Identity: blockchain address, domain name, social identityresolvedAddress: # Blockchain address to which the domain resolves to}
Output
typeDomain {blockchain: Blockchain! # Blockchain, where the domain is locatedchainId: String # Unique blockchain identifiercreatedAtBlockNumber: Int # Block number when the domain was createdcreatedAtBlockTimestamp: Time #Timestamp when the domain was createddappName: # DApp name associated with the domain (e.g.,ENS)dappSlug: # DApp slug (contract version) associated with the domainexpiryTimestamp: # Timestamp when the domain registration expires; note - ENS has a 3-month grace period after the expiry timestampformattedRegistrationCost: Float # Registration cost for the domainformattedRegistrationCostInNativeToken: Float # Registration cost in the native tokenformattedRegistrationCostInUSDC: Float # Registration cost in USDCid: ID # Airstack unique identifier for the domainisPrimary: Boolean # Indicates if the domain is set to be primarylabelHash: String # Airstack unique domain hashlabelName: String # Domain name wihtout the domain ending, eg. 'vitalik' instead of 'vitalik.eth'lastUpdatedBlockNumber: Int # Block number when the domain was last updatedlastUpdatedBlockTimestamp: Time # Timestamp when the domain was last updatedname: String # Domain nameowner: Address! # Domain owner's addressparent: String # Airstack unique hash to retrieve on-chain data to be used in filterspaymentToken: Token # Nested query - can retrieve payment token data (name, symbol, etc.)paymentTokenCostInNativeToken: Float # Domain registration cost in blockchain native tokenpaymentTokenCostInUSDC: Float # Domain registration cost in USDCregistrationCost: String # Registration cost for the domainregistrationCostInNativeToken: String # Registration cost in the native tokenregistrationCostInUSDC: String # Registration cost in USDC as a stringresolvedAddress: Address # Address to which the domain is resolvedsubDomainCount: Int # Count of subdomains linked to the domainsubDomains: [Domain] # Nested query - all subdomain-related datatokenId: String # Domain Token ID associated with the domain, if applicablettl: String # Time-to-live value for the domain}
For ENS, the ENS domain name by default references the resolved address. In some rare cases, the owner and resolved addresses may differ (the owner set it to resolve to another wallet).