# InsufficientFundsError

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

What InsufficientFundsError means, which codes it carries and how to catch it in ensforge. The account cannot pay for the operation.

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

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

The account cannot pay for the operation.

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

## Fields [#fields]

| Field | Type | Description |
| --- | --- | --- |
| `required` | `bigint` |  |
| `available` | `bigint` |  |
| `token` | `Address` | ERC-20 token, or `undefined` for ETH. |

## Codes [#codes]

| Code | Meaning | Retryable |
| --- | --- | --- |
| [`INSUFFICIENT_ETH`](/docs/reference/errors/INSUFFICIENT_ETH) | The account does not have enough ETH. | No |
| [`INSUFFICIENT_TOKEN_BALANCE`](/docs/reference/errors/INSUFFICIENT_TOKEN_BALANCE) | The account does not have enough of the payment token. | No |

## Catch it [#catch-it]

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