Skip to content
This repository has been archived by the owner on Sep 27, 2023. It is now read-only.

What's the possible min and max length of ens names #386

Open
TimDaub opened this issue Nov 22, 2021 · 3 comments
Open

What's the possible min and max length of ens names #386

TimDaub opened this issue Nov 22, 2021 · 3 comments

Comments

@TimDaub
Copy link

TimDaub commented Nov 22, 2021

For a .eth name, given the current contracts on the Ethereum main network: What is the minimal possible amount of characters permitted and what is the maximum number? Also: Will these two values remain constant over time? On-chain, are they mutable? In the code: where are they checked for?

@ca98am79
Copy link
Contributor

I believe the only limit is that the name must be greater than or equal to 3 characters: https://github.com/ensdomains/ethregistrar/blob/master/contracts/ETHRegistrarController.sol#L58

Someone recently registered an .eth name with 10,000 characters: https://twitter.com/fuqeth/status/1456800064295391233

@TimDaub
Copy link
Author

TimDaub commented Nov 22, 2021

ok thanks @ca98am79. Maybe another related question: Do you know where I could quickly get ahold of a list of of all ens names; or rather: Where I could find out which character lengths are most commonly used as ens names, e.g. "Most users use a length between 5 - 20 chars" ?

@FifthRooter
Copy link

@TimDaub I don't think there's a convenient dashboard that allows you to filter the names the way you want, but you can use https://etherscan.io/enslookup to find all of the registered names. With a simple js/python script you can fetch this data and parse it to get the answers you're looking for :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants