INSUFFICIENT_TOKEN_BALANCE
What INSUFFICIENT_TOKEN_BALANCE means, why InsufficientFundsError throws it, what to show users and how to fix it in ensforge.
InsufficientFundsErrorNot retryable
@ensforge/sdk
What happened
The account does not have enough of the payment token.
What to show users
| Title | Message | Action |
|---|---|---|
| Insufficient balance | Your wallet does not have enough tokens to pay. |
Retry safety
Retrying the same call fails the same way until the cause is fixed (retryable: false).
Actions that throw it
| Action | When |
|---|---|
registration.register | when the signer cannot pay in the payment token. |
registration.renew | when the signer cannot pay in the payment token. |
Any write can fail with InsufficientFundsError: it is part of Errors.WriteError.
Catch it
Errors.hasCode("INSUFFICIENT_TOKEN_BALANCE") narrows to this error. See Handle errors.
Was this page helpful?