INSUFFICIENT_ETH
What INSUFFICIENT_ETH means, why InsufficientFundsError throws it, what to show users and how to fix it in ensforge. Also covers retry safety.
InsufficientFundsErrorNot retryable
@ensforge/sdk
What happened
The account does not have enough ETH.
What to show users
| Title | Message | Action |
|---|---|---|
| Not enough ETH | Your wallet does not have enough ETH to cover this transaction. | Add ETH to your wallet. |
Retry safety
Retrying the same call fails the same way until the cause is fixed (retryable: false).
Actions that throw it
No action names this code in its documented errors.
Any write can fail with InsufficientFundsError: it is part of Errors.WriteError.
Catch it
Errors.hasCode("INSUFFICIENT_ETH") narrows to this error. See Handle errors.
Was this page helpful?