NAME_NOT_REGISTERED
What NAME_NOT_REGISTERED means, why NameStateError throws it, what to show users and how to fix it in ensforge. Also covers retry safety.
NameStateErrorNot retryable
@ensforge/sdk
What happened
The name is not registered.
What to show users
| Title | Message | Action |
|---|---|---|
| Name not registered | This name is not registered. |
Retry safety
Retrying the same call fails the same way until the cause is fixed (retryable: false).
Actions that throw it
| Action | When |
|---|---|
approval.setToken | when the name is not registered. |
dns.setRecords | when the name is not registered. |
name.reclaim | when the name is not registered. |
name.setManager | when the name is not registered. |
name.setTtl | when the name is not registered. |
name.transfer | when the name cannot be sent. |
record.set | when the name is not registered. |
registry.attach | when the name is not registered. |
resolver.create | when the name is not registered. |
resolver.link | when the name is not registered. |
resolver.set | when the name is not registered. |
subname.create | when the child exists or the parent is not registered. |
subname.remove | when the child or parent does not exist. |
subname.update | when the child or parent does not exist, or an emancipated child expired. |
wrapper.setChildFuses | when the name is not wrapped. |
wrapper.setFuses | when the name is not wrapped. |
wrapper.unwrap | when the name is not wrapped. |
wrapper.wrap | when the name cannot be wrapped. |
Catch it
Errors.hasCode("NAME_NOT_REGISTERED") narrows to this error. See Handle errors.
Was this page helpful?