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

NAME_HAS_SUBNAMES

What NAME_HAS_SUBNAMES 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 has subnames, which would keep resolving without it.

What to show users

TitleMessageAction
Name has subnamesThis name has subnames, which would keep resolving without it.Remove its subnames first.

How to fix

Remove its subnames first, or pass allowOrphanedSubnames: true.

Retry safety

Retrying the same call fails the same way until the cause is fixed (retryable: false).

Actions that throw it

ActionWhen
subname.removewhen the indexer knows subnames of an ENSv1 child, unless allowOrphanedSubnames.

Catch it

Errors.hasCode("NAME_HAS_SUBNAMES") narrows to this error. See Handle errors.

Was this page helpful?