Documentation for agents: an index at /llms.txt, every docs page in one file at /llms-full.txt, and Markdown for any docs page by adding .md to its URL.

Skip to Content
ensforge

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

TitleMessageAction
Not the ownerYour 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

ActionWhen
approval.setDelegatewhen the signer does not own the name.
approval.setTokenwhen the account may not approve it.
dns.claimwhen someone other than the DNS owner claims with a resolver.
dns.setRecordswhen the account may not edit the records.
migration.migratewhen the account may not move a token.
name.reclaimwhen the account is not the registrant.
name.setManagerwhen the account is neither registrant nor manager.
name.setTtlwhen the account may not change it.
name.transferwhen the account may not send it, or the recipient (an HCA) refuses it.
permission.setRecordAccesswhen the account may not grant access.
record.setwhen the account may not edit records.
resolver.createwhen the account may not point the name at it.
resolver.setwhen the account may not change it.
subname.createwhen the account may not create children.
subname.removewhen the account may not remove it.
subname.updatewhen the account may not change it.
wrapper.setChildFuseswhen the account may not change it.
wrapper.setFuseswhen the account may not burn them.
wrapper.unwrapwhen the account may not unwrap it.
wrapper.wrapwhen 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?