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

WalletError

What WalletError means, which codes it carries and how to catch it in ensforge. The wallet is not in a state to sign: wrong chain or no account.

Error class2 codes · @ensforge/sdk

The wallet is not in a state to sign: wrong chain or no account.

Any write can fail with WalletError: it is part of Errors.WriteError.

Fields

FieldTypeDescription
expectedChainIdnumber
actualChainIdnumber

Codes

CodeMeaningRetryable
CHAIN_MISMATCHThe wallet is on chain ?, expected ?.No
ACCOUNT_NOT_FOUNDThe wallet has no account to sign with.No

Catch it

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

Was this page helpful?