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

InvalidInputError

What InvalidInputError means, which codes it carries and how to catch it in ensforge. An argument is invalid. Lists its fields and every code.

Error class10 codes · @ensforge/sdk

An argument is invalid. Detected before any network request.

Fields

FieldTypeDescription
inputunknownThe rejected value.
fieldstringThe option it was passed as, when relevant.

Codes

CodeMeaningRetryable
INVALID_NAMEundefined is not a valid ENS name.No
INVALID_ADDRESSundefined is not a valid address.No
INVALID_COIN_TYPEundefined is not a known coin type.No
INVALID_CONTENT_HASHundefined is not a valid content hash.No
INVALID_RECORD_VALUEundefined is not a valid record value.No
INVALID_DURATIONundefined is not a valid duration.No
DURATION_TOO_SHORTThe duration is shorter than the registrar's minimum.No
INVALID_EXPIRYThe expiry cannot be in the past or earlier than the current expiry.No
INVALID_ROLESundefined is not a valid role bitmap.No
SALT_TAKENA contract was already deployed with this salt.No

Catch it

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

Was this page helpful?