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

InsufficientFundsError

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

Error class2 codes · @ensforge/sdk

The account cannot pay for the operation.

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

Fields

FieldTypeDescription
requiredbigint
availablebigint
tokenAddressERC-20 token, or undefined for ETH.

Codes

CodeMeaningRetryable
INSUFFICIENT_ETHThe account does not have enough ETH.No
INSUFFICIENT_TOKEN_BALANCEThe account does not have enough of the payment token.No

Catch it

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

Was this page helpful?