0

How can I check if an ENS domain name is correct or not? I would like to know how they are being calculated. I mean what are the standard rules.

Here is web3.py output.

In [1]: from ens.utils import is_valid_ens_name

In [2]: is_valid_ens_name("-example.eth")
Out[2]: True

In [3]: is_valid_ens_name("-example.eth-")
Out[3]: True

In [4]: is_valid_ens_name("-example-.eth-")
Out[4]: True
1

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.