The API may still return a route when the wallet does not have sufficient funds. Execution fails if those funds are not available when the transaction is sent.
Definition
A quote is a simulated path, not a reservation of balances. The API can build signer-ready tx data even if the fromAddress cannot currently fund it.
How it works
Show the quote, then check balances before you ask the user to sign, so you can warn early.
If the user signs anyway, the on-chain transaction fails when the account cannot pay the input or the native
tx.value.Rebuild the quote after the user tops up, rather than resubmitting the old calldata later.
This is different from a slippage revert, a missing approval, or a “could not build shortcuts” quote error.
How Enso does this
The FAQ states that the API will return a route, but transaction execution will fail if sufficient funds aren’t available. Use GET https://api.enso.build/api/v1/wallet/balances to show what the user can spend. See Get Balances.
FAQ
Does an empty-wallet quote mean the route is invalid?
No. It means the path was simulated. Funding is checked at execution, not at quote time.
Should I block signing if balances are too low?
You can, as a product decision. The API itself may still return the route.
Related articles
How do I get wallet balances and DeFi positions?
What if token allowance is too low?
What if slippage is too tight and the swap reverts?
Why did the transaction fail on-chain after I got a quote?
What is fromAddress in a routing API?
