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

NameStateError

What NameStateError means, which codes it carries and how to catch it in ensforge. Lists its fields and every code. Includes how to catch it.

Error class12 codes · @ensforge/sdk

The name is in the wrong state for this operation (registered, expired, locked, …).

Codes

CodeMeaningRetryable
NAME_NOT_AVAILABLEThe name is already registered.No
NAME_NOT_REGISTEREDThe name is not registered.No
NAME_RESERVEDThe name is reserved.No
NAME_EXPIREDThe name has expired.No
NAME_NOT_RENEWABLEThe name cannot be renewed.No
NAME_LOCKEDThe name is locked.No
NAME_NOT_WRAPPEDThe name is not wrapped in the NameWrapper.No
NAME_WRAPPEDThe name is already wrapped in the NameWrapper.No
NAME_UNREACHABLEENSv2 resolution no longer reaches this ENSv1 name.No
NAME_REQUIRES_MIGRATIONThe name must be migrated to ENSv2 first.No
PARENT_NOT_MIGRATEDThe parent name has not been migrated to ENSv2.No
REGISTRY_NOT_EMANCIPATEDThe registry is not emancipated, so this transfer is unsafe.No

Catch it

Effect.catchTag("NameStateError", …) or error instanceof Errors.NameStateError. See Handle errors.

Was this page helpful?

On this page