NOT_OWNER
What NOT_OWNER means, why UnauthorizedError throws it, what to show users and how to fix it in ensforge. Also covers retry safety and the actions that throw it.
UnauthorizedErrorNot retryable
@ensforge/sdk
What happened
The account does not own this name.
What to show users
| Title | Message | Action |
|---|---|---|
| Not the owner | Your account does not own this name. | Switch to the owner's account. |
How to fix
Send from the owner's account.
Retry safety
Retrying the same call fails the same way until the cause is fixed (retryable: false).
Actions that throw it
| Action | When |
|---|---|
approval.setDelegate | when the signer does not own the name. |
approval.setToken | when the account may not approve it. |
dns.claim | when someone other than the DNS owner claims with a resolver. |
dns.setRecords | when the account may not edit the records. |
migration.migrate | when the account may not move a token. |
name.reclaim | when the account is not the registrant. |
name.setManager | when the account is neither registrant nor manager. |
name.setTtl | when the account may not change it. |
name.transfer | when the account may not send it, or the recipient (an HCA) refuses it. |
permission.setRecordAccess | when the account may not grant access. |
record.set | when the account may not edit records. |
resolver.create | when the account may not point the name at it. |
resolver.set | when the account may not change it. |
subname.create | when the account may not create children. |
subname.remove | when the account may not remove it. |
subname.update | when the account may not change it. |
wrapper.setChildFuses | when the account may not change it. |
wrapper.setFuses | when the account may not burn them. |
wrapper.unwrap | when the account may not unwrap it. |
wrapper.wrap | when the account does not own the name, or the manager has not approved the NameWrapper. |
Catch it
Errors.hasCode("NOT_OWNER") narrows to this error. See Handle errors.
Was this page helpful?