# INVALID_PARAMS

> Invalid parameters: A required parameter is missing or malformed, or the request is not allowed for this provider.

Source: https://docs.layerhop.com/errors/INVALID_PARAMS

| HTTP status | Retry |
|---|---|
| `400` | no |

**Where it comes from:** `GET /v1/quote`, `POST /v1/orders`, `POST /v1/orders/submit`, `GET /v1/orders/{provider}/{id}`; also mapped from provider validation errors.

## Causes

- A required query parameter of `GET /v1/quote` is missing (`srcChain`, `srcToken`, `amount`, `dstChain`, `dstToken`, `sender`, `recipient`).
- `amount` is not an integer string in base units (for example `"1.5"` or `"1e6"`).
- `slippageBps` is outside 1–5000, or `channel` is not one of `web`, `widget`, `bot`, `api`.
- `quoteId` (or `signedTransaction`) is missing from a POST body, or the body is not JSON.
- `POST /v1/orders/submit` was called for a provider whose transactions are broadcast by the wallet (only `submitViaApi` transactions can be submitted).
- `GET /v1/orders/{provider}/{id}` names a provider that is not loaded in this API instance, or `id` is not a transaction hash / order id (`0x` + 64 hex, or a Solana signature).
- `sender` is not an address of the source chain, or `recipient` not one of the destination chain (for example a Solana address as an EVM sender, or `0x123`).
- `srcToken` and `dstToken` are the same token on the same chain.
- `integratorFeeBps` is not an integer >= 0.
- `POST /v1/orders/{quoteId}/submitted` reported a transaction that exists on chain but was not sent by the quote's `sender` (EVM: to the contract the order was built for; Solana: signed by `sender`).
- A provider rejected an address or slippage value (for example Relay `INVALID_RECIPIENT`, deBridge affiliate fee over its cap).

## How to fix

- Read `error.message`: it lists each failing field as `field: reason`.
- Convert human amounts to base units with the token's `decimals` (see [GET /v1/tokens](/api-reference#list-tokens)).
- Only call submit when `tx.vm === "svm" && tx.submitViaApi`; otherwise send the transaction from the wallet.
- Use a `provider` value returned by the quote you are tracking.

## Example response

```json
{
  "error": {
    "code": "INVALID_PARAMS",
    "message": "amount: amount must be an integer string in base units",
    "requestId": "0d5e1f6a-3b2c-4d1e-8f9a-7b6c5d4e3f21",
    "docsUrl": "https://docs.layerhop.com/errors/INVALID_PARAMS"
  }
}
```

See [Error handling & retries](/guides/error-handling) for a retry strategy, and the [error catalog](/errors) for every code.
