TLD_NOT_PUBLIC
What TLD_NOT_PUBLIC means, why DnsError throws it, what to show users and how to fix it in ensforge. Also covers retry safety and the actions that throw it.
DnsErrorNot retryable
@ensforge/sdk
What happened
The top-level domain is not a public suffix and cannot be imported.
What to show users
| Title | Message | Action |
|---|---|---|
| Domain not supported | This top-level domain cannot be imported into ENS. |
Retry safety
Retrying the same call fails the same way until the cause is fixed (retryable: false).
Actions that throw it
| Action | When |
|---|---|
dns.claim | when the name cannot be proven. |
Catch it
Errors.hasCode("TLD_NOT_PUBLIC") narrows to this error. See Handle errors.
Was this page helpful?