AMOUNT_TOO_LARGE
Amount too large: The input amount exceeds what a provider can fill.
| HTTP status | Retry |
|---|---|
400 |
no |
Where it comes from: Provider errors from Relay, Mayan and LI.FI. Usually appears per provider in QuoteResponse.errors.
Causes#
- The provider's liquidity or per-order cap for this route is lower than the amount.
How to fix#
- Use another quote from
quotes[]if one exists. - Split the trade into smaller orders.
Example response#
JSON
{
"error": {
"code": "AMOUNT_TOO_LARGE",
"message": "Relay: Amount too high",
"requestId": "0d5e1f6a-3b2c-4d1e-8f9a-7b6c5d4e3f21",
"docsUrl": "https://docs.layerhop.com/errors/AMOUNT_TOO_LARGE"
}
}See Error handling & retries for a retry strategy, and the error catalog for every code.