LayerHopDocsLaunch app (opens in a new tab)

LIMIT_ORDER_REJECTED

Limit order rejected: A signed EVM limit order (or its cancellation) was refused: the signature is not the wallet's for exactly this order, or CoW Protocol's order book rejected it.

HTTP status Retry
422 yes

Where it comes from: POST /v1/limit-orders/{id}/submit for EVM orders.

Causes#

  • The typed data was changed before signing, or signed by another wallet than the order's wallet.
  • The wallet is a smart-contract wallet (EIP-1271); only plain wallet signatures are supported for now.
  • The allowance to CoW's vault relayer (0xC92E8bdf79f0507f65a392b0ab4667716BFE0110) is below the order's amount, or the balance is too low (InsufficientAllowance, InsufficientBalance).
  • CoW refused the order for another reason; the message carries its errorType and description.

How to fix#

  • Sign typedData exactly as returned by POST /v1/limit-orders, with the order's wallet, and submit the 65-byte signature.
  • Approve the sell token to the vault relayer for at least approval.amount (plus your other open orders of that token), then submit the same signature again.
  • Nothing was placed: the order stays built until a submit succeeds, and can be cancelled without signing.

Example response#

JSON
{
  "error": {
    "code": "LIMIT_ORDER_REJECTED",
    "message": "{\n  \"error\": {\n    \"code\": \"LIMIT_ORDER_REJECTED\",\n    \"message\": \"CoW Protocol rejected the order: InsufficientAllowance: order owner must give allowance to VaultRelayer\",\n    \"requestId\": \"0d5e1f6a-…\",\n    \"docsUrl\": \"https://docs.layerhop.com/errors/LIMIT_ORDER_REJECTED\"\n  }\n}",
    "requestId": "0d5e1f6a-3b2c-4d1e-8f9a-7b6c5d4e3f21",
    "docsUrl": "https://docs.layerhop.com/errors/LIMIT_ORDER_REJECTED"
  }
}

See Error handling & retries for a retry strategy, and the error catalog for every code.

Last updated