NAME_EXTERNAL
What NAME_EXTERNAL 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 in ENS's registries: its parent's resolver serves it.
What to show users
| Title | Message | Action |
|---|---|---|
| Managed elsewhere | This name is managed by the service that issued it, not by ENS directly. | Manage it in the app or network that issued it. |
How to fix
Its parent's namespace manages it (an L2, or the provider's app or API); ENS writes cannot change it.
Retry safety
Retrying the same call fails the same way until the cause is fixed (retryable: false).
Actions that throw it
| Action | When |
|---|---|
approval.getDelegate | for a name in an L2 namespace without delegates. |
approval.getOperator | for a name that is not registered, or that a namespace outside ENS and its L2s manages. |
approval.setDelegate | for a name in an L2 namespace without delegates. |
approval.setOperator | for a name that is not registered, or that a namespace outside ENS and its L2s manages. |
approval.setToken | when the name is not registered, or its parent's namespace manages it outside ENS's registries. |
dns.setRecords | when the name is not registered, or its parent's namespace manages it outside ENS's registries. |
name.reclaim | when the name is not registered, or its parent's namespace manages it outside ENS's registries. |
name.setManager | when the name is not registered, or its parent's namespace manages it outside ENS's registries. |
name.setTtl | when the name is not registered, or its parent's namespace manages it outside ENS's registries. |
name.transfer | when the name cannot be sent, or its parent's namespace manages it outside ENS's registries. |
record.set | when the name is not registered, or its parent's namespace manages it outside ENS's registries. |
registry.attach | when the name is not registered, or its parent's namespace manages it outside ENS's registries. |
resolver.create | when the name is not registered, or its parent's namespace manages it outside ENS's registries. |
resolver.link | when the name is not registered, or its parent's namespace manages it outside ENS's registries. |
resolver.set | when the name is not registered, or its parent's namespace manages it outside ENS's registries. |
subname.create | when the child exists or the parent is not registered, or its parent's namespace manages it outside ENS's registries. |
subname.remove | when the child or parent does not exist, or its parent's namespace manages it outside ENS's registries. |
subname.update | when the child or parent does not exist, or an emancipated child expired, or its parent's namespace manages it outside ENS's registries. |
wrapper.setChildFuses | when the name is not wrapped, or its parent's namespace manages it outside ENS's registries. |
wrapper.setFuses | when the name is not wrapped, or its parent's namespace manages it outside ENS's registries. |
wrapper.unwrap | when the name is not wrapped, or its parent's namespace manages it outside ENS's registries. |
wrapper.wrap | when the name cannot be wrapped, or its parent's namespace manages it outside ENS's registries. |
Catch it
Errors.hasCode("NAME_EXTERNAL") narrows to this error. See Handle errors.
Was this page helpful?