# WalletError

> For the complete documentation index, see [llms.txt](https://ensforge.com/llms.txt).

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.

Source: https://ensforge.com/docs/reference/errors/wallet-error

<ApiMeta kind="Error class" summary="2 codes · @ensforge/sdk" source="packages/sdk/src/errors/classes/WalletError.ts#L23" />

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 [#fields]

| Field | Type | Description |
| --- | --- | --- |
| `expectedChainId` | `number` |  |
| `actualChainId` | `number` |  |

## Codes [#codes]

| Code | Meaning | Retryable |
| --- | --- | --- |
| [`CHAIN_MISMATCH`](/docs/reference/errors/CHAIN_MISMATCH) | The wallet is on chain ?, expected ?. | No |
| [`ACCOUNT_NOT_FOUND`](/docs/reference/errors/ACCOUNT_NOT_FOUND) | The wallet has no account to sign with. | No |

## Catch it [#catch-it]

`Effect.catchTag("WalletError", …)` or `error instanceof Errors.WalletError`. See [Handle errors](/docs/sdk/handle-errors).