Clear News

ens twitter record

What Is ENS Twitter Record? A Complete Beginner’s Guide

June 11, 2026 By Sage Booker

Introduction to ENS and the Twitter Record

The Ethereum Name Service (ENS) transforms human-readable names like "alice.eth" into Ethereum addresses, creating a decentralized naming system akin to DNS. However, ENS extends beyond simple address resolution by enabling rich metadata associations through text records. One such critical record is the ENS Twitter record, a mechanism that links an ENS domain directly to a Twitter profile handle (e.g., @vitalikbuterin). For developers, crypto projects, and power users, this record serves as a verifiable, on-chain attestation of identity across Web2 and Web3 ecosystems. It allows decentralized identifiers to bridge into centralized social platforms without relying on third-party oracles or manual verification badges.

The ENS Twitter record stores a plain text value—the Twitter username without the "@" symbol—inside the ENS resolver contract. Once set, any application querying the ENS domain can retrieve this record via standard ENS resolution calls. This enables dApps, wallets, and explorers to display a domains associated Twitter handle, making it easier for users to verify authenticity. For instance, if a domain resolves to a defi protocol’s address, the Twitter record provides a tamper-proof link to the project’s official social presence. This eliminates phishing risks where fake accounts mimic legitimate teams.

For beginners, the concept might seem abstract. In practice, the ENS Twitter record is a small but powerful component of a broader "Web3 identity" stack. Combined with avatar records, email records, and other social links, it creates a portable profile that lives on Ethereum. Setting it up requires a one-time transaction fee (gas) and a few steps in the ENS manager app. Below, we break down everything you need to know: the technical specification, how to configure it, and why you should care.

A key caveat: the record only stores the handle string. It does not verify that the ENS domain owner controls the associated Twitter account. However, the record can be combined with a signed message from the Twitter account (a "proof of ownership") to establish bidirectional trust. We’ll cover that later in the security section.

How the ENS Twitter Record Works Under the Hood

To understand the Twitter record, you first need to grasp ENS’s architecture. ENS consists of two core contracts: the registry and the resolver. The registry maps domain names to their owner and resolver contract address. The resolver is a smart contract that stores and resolves records (addr text, content hash, etc.) for a given domain. The ENS Twitter record is a specific "key" in the resolver’s text records mapping, keyed as com.twitter. When a dApp calls the text() function with the domain name and key com.twitter, it receives the stored string value.

The specification follows the ENS text record standard defined in EIP-137 and later expanded in ENSIP-5. The key is always lowercase and uses a reverse domain name notation (e.g., com.twitter for Twitter, com.github for GitHub). The value is the profile handle without the leading "@". For example, if you own vitalik.eth and set the record to "VitalikButerin", then querying com.twitter for vitalik.eth returns "VitalikButerin".

Setting the record is an on-chain transaction that invokes the resolver contract’s setText() function. Gas costs depend on Ethereum network congestion and the calldata size (a short handle is cheaper). Currently, most users set records via the ENS Manager app (app.ens.domains) or through command-line tools like ensjs. The manager app provides a straightforward UI: navigate to your domain’s "Records" tab, add a text record with key com.twitter and the desired value, then confirm the transaction via your wallet.

One important nuance: the ENS Twitter record is centralized in the sense that it references a Web2 platform. However, the record itself is stored on Ethereum, making it immutable and censorship-resistant. If Twitter changes its API or blocks the handle, the on-chain record remains valid. This asymmetry is intentional—ENS provides a persistent anchor, while the linked platform may evolve or be replaced. For maximum resilience, some users store multiple social records (e.g., com.twitter, com.mastodon, io.github) to decouple from any single service.

From a developer perspective, reading the record is trivial. Most ENS libraries (e.g., ethers.js) expose a getText() method:

const resolver = await provider.getResolver('alice.eth');
const twitterHandle = await resolver.getText('com.twitter');
console.log(twitterHandle); // "alice"
This simplicity has made the ENS Twitter record a de facto standard for cross-platform identity verification in the Ethereum ecosystem.

Step-by-Step Guide: Setting Your ENS Twitter Record

Here is a precise, numbered breakdown for beginners to set their first ENS Twitter record. You will need an ENS domain you own, a web3 wallet (e.g., MetaMask), and enough ETH for gas fees.

  1. Access the ENS Manager: Go to app.ens.domains and connect your wallet (e.g., MetaMask). Ensure you are on Ethereum mainnet (or a supported L2 like Optimism if your domain is on that chain).
  2. Select your domain: In the search bar, type your domain (e.g., "mydomain.eth") and click on it. You’ll see the domain detail page.
  3. Navigate to "Records": Click the "Records" tab. Here you see existing records (addr, text, etc.). Scroll to the "Text Records" section.
  4. Add a text record: Click "Add Record". A form appears with two fields: "Key" and "Value". For "Key", type com.twitter exactly (case-sensitive? No—the ENS resolver normalizes keys to lowercase). For "Value", enter your Twitter handle without the "@" symbol. Example: if your Twitter is @john_doe, enter john_doe.
  5. Confirm transaction: Click "Add" and approve the transaction in your wallet. Wait for the transaction to be mined (usually 1–3 minutes). Once confirmed, the record appears in the list.
  6. Verify: Use the "Test Resolution" tool on the same page or query via ethers.js to confirm the record is set. You can also check on Etherscan by calling text('com.twitter') on the resolver contract.

That’s it. The entire process costs about 30,000–50,000 gas per record (roughly $2–$10 at 20 Gwei). For multiple records, consider batching them into a single transaction if your resolver supports it.

If you are configuring a domain for the first time, our quick start guide covers domain registration, resolver setup, and record management in detail. It includes troubleshooting tips for common errors like "resolver not set" or "text record key mismatch."

Why Use the ENS Twitter Record? Practical Benefits and Use Cases

The ENS Twitter record moves beyond vanity into functional utility. Here are the primary reasons to set one:

  • Verifiable Identity: Any dApp, wallet, or explorer can fetch the Twitter handle linked to your domain. This helps combat impersonation. For example, if a user visits a DeFi dashboard and sees "vitalik.eth" with a Twitter record pointing to @VitalikButerin, they can cross-reference the official Twitter profile. The on-chain record acts as a single source of truth.
  • Portable Profiles: Services like ENS (the native domain manager), Unstoppable Domains, and even some NFT marketplaces display text records. The Twitter record becomes part of your "Web3 business card". Sharing your ENS domain instantly conveys your social presence—no need to manually type handles.
  • Automated Verification: Platforms like Snapshot (voting) and Collab.Land use ENS records to validate membership. In a DAO, you could require that members have a valid Twitter record stored in their ENS to participate in governance. This reduces sybil attacks by tying on-chain identity to curated social accounts.
  • Cross-Platform Linking: Developers building bulletin boards, forums, or social dApps can display Twitter handles from ENS records, fostering trust. For instance, a decentralized job board could show "applied by alice.eth (@alice_tweets)" with a direct link to that Twitter profile.
  • NSFW or Content Filtering: Although less common, the record can signal domain intent—e.g., a content creator marking their domain as linked to mature content on Twitter. This is an edge case but demonstrates extensibility.

One critical limitation: the ENS Twitter record is a claim, not a proof. Anyone who owns a domain can set any Twitter handle. To establish bidirectional proof, the Twitter account should tweet the ENS domain (or its address) from that account. Then, anyone can verify the tweet’s content against the ENS record. This two-step verification is standard in many "proof-of-twitter" protocols.

Despite this, the record significantly lowers the barrier for identity linking. It’s the difference between a self-signed statement and a notarized one—both have value depending on the context. For high-stakes use cases (e.g., a protocol founder claiming their official domain), you should always demand the bidirectional proof.

Managing Your ENS Twitter Record: Renewals, Updates, and Expiry

ENS domains are not purchased forever; they are rented. Standard .eth domains have a registration period of 1–5 years. When the domain expires, the ENS registry transfers ownership to a grace period or auction system, depending on the implementation. During this time, the resolver contract may or may not continue serving text records. In practice, most resolvers immediately delete all records when the domain expires because the resolver reference in the registry is removed. Users interacting with your domain will see an error (e.g., "no resolver") until you renew.

Therefore, maintaining your ENS Twitter record is contingent on keeping your domain active. Set calendar reminders for renewal 30 days before expiry to avoid downtime. The ENS manager app sends email or browser notifications if you configure them. Additionally, consider registering for the longest possible period (e.g., 5 years) to reduce management overhead.

An important event that can catch beginners off guard is the ENS expiration event. When a domain expires, the record becomes inaccessible after the grace period ends (typically 90 days). At that point, anyone can register the domain and potentially set a different Twitter record. If you lose your domain to auction, the old record is permanently overwritten. To prevent this, always renew well before the expiration date. For domains with high value (brand names, short names), consider using ENS’s automatic renewal feature or a third-party service that monitors expiration.

Updating the record is as simple as setting it again—the new value overwrites the old one. There is no version history maintained on-chain. For safety, maintain an off-chain backup of your desired records in case you need to recover after an unintended change. Note that setting a new Twitter record incurs gas fees again, so batch multiple text record updates into a single transaction using a multicall contract if your resolver supports it.

Security Considerations and Best Practices

The ENS Twitter record is a public key-value store. Anyone can query it. Do not store sensitive information (e.g., private messages, passwords) as a text record. The handle itself is benign, but be aware of the following risks:

  • Impersonation by domain squatting: A malicious actor could register a domain similar to yours (e.g., "alice_eth" instead of "alice.eth") and set a Twitter record pointing to your handle. Users who rely solely on the ENS record may be misled. Mitigation: register common variations of your domain and redirect them to your main domain using ENS’s "subdomain" feature.
  • Phishing via fake resolvers: If someone gains control of your resolver contract (e.g., through a DAO or multisig compromise), they could overwrite all text records. Always use a reliable resolver (like the official ENS public resolver) and avoid custom resolvers unless necessary.
  • Replay attacks on L2s: If you set a Twitter record on Ethereum mainnet, but your domain is registered on an L2 (like Arbitrum), the record will not automatically be mirrored. You must set records separately on each chain. Beware of copycat records on other chains that users might mistakenly trust.
  • Bidirectional proof protocol: For high-assurance verification, implement the following: have the Twitter account tweet "I own ". Then, the ENS record can be considered verified if the tweet exists and the address matches the domain’s owner. Tools like ens-twitter-verify (open-source) automate this.

As a beginner, start simple: set the record, confirm it works, and educate your audience on how to verify the bidirectional link. Over time, adopt more robust methods as your identity use cases grow.

Conclusion and Next Steps

The ENS Twitter record is a small but mighty component of decentralized identity. It bridges the gap between the cryptographic trust of Ethereum and the social trust of Twitter, enabling portable, verifiable profiles that resist censorship. For beginners, the learning curve is low: acquire an ENS domain, set the com.twitter text record, and you’ve created a permanent link between your Web3 and Web2 personas.

As you become more experienced, explore additional records (avatar, email, URL) to build a complete on-chain identity. Combine the Twitter record with ENS subdomains for team or project structures. And always monitor expiration dates—missing a renewal is the most common way to lose your records. For a comprehensive walkthrough of the entire ENS lifecycle, from buying a domain to managing records and renewals, refer to our quick start guide. It covers gas optimization, batch operations, and integration with popular dApps.

The ENS ecosystem is evolving rapidly. With the adoption of ENSv2, text records may become more feature-rich, supporting larger values and multiple resolvers. For now, the Twitter record remains the simplest and most widely used social proof mechanism in the ENS universe. Set it today, and take your first step toward a unified digital identity.

Sources we relied on

S
Sage Booker

Quietly thorough overviews