A name's token ID changes in four cases: the name is upgraded from ENSv1 to ENSv2, a role on the name is granted or taken away, the name expires and is registered again, or the name is unregistered. A role is a permission that lets a wallet act on the name. A role change doesn't move the name to another wallet by itself.
What is a token ID?
Every ENSv2 name is an NFT (a token you hold in a wallet). The token ID is that NFT's number. To see it, open the name in ENS Explorer and select Token info in the sidebar.
What changes it, and what doesn't?
When a role on the name changes, the old token is swapped for another with a different number.
Setting records, renewing, changing the resolver and sending the name to another wallet keep the same token ID. Changing roles on the resolver doesn't change it either.
What stops working?
A marketplace listing made for the old token ID ends. To keep the name for sale, list it again after the role change.
This is on purpose, and it protects buyers. When a role on the name itself changes (not a role on its resolver), the name gets a new token ID, and any listing made for the old ID ends. So a buyer always gets the name with the roles it had when they agreed to buy it.
Common questions
Did I lose my name when a role changed?
A role change doesn't move your name to another wallet by itself. To check who owns it, open it in ENS Explorer and select Ownership.
Someone else has my name after it expired. Was it taken?
Nobody took it from your wallet: the registration had ended. Once the grace period is over, anyone can register the name, and a new token is made for them.
Can I stop the token ID changing?
No, you cannot stop the token ID changing when a role on the name changes. If you plan to list the name, finish any role changes first.
Does sending my name to another wallet change the token ID?
No, sending your name to another wallet keeps the same token ID.
Does upgrading change my token ID?
Yes. Upgrading makes your name a new ENSv2 token with a new token ID. The name stays the same.
What should I use to keep track of my name?
Use the name itself, such as yourname.eth, not the token ID. The name stays the same, but the token ID can change.
