Skip to the article
Top Crypto

Crypto markets, protocols, policy

Signed DEX API orders fail when approval masks bad data

A signed DEX API order can fail after vault relayer approval because token access and order authentication are separate; verify the chain, signer, payload and response.

The Top Crypto Editors 2 min read

Signed DEX API orders fail when approval masks bad data

A signed DEX API order can fail after you approve the vault relayer because approval authorizes token transfers, while the API separately validates the order’s signature and fields.

CoW Swap makes this separation clear through signed trade intents and solver-run batch auctions. For cowswap, cowswap API vault relayer approval is the token-access step; the API still authenticates each signed order separately.

What should you inspect first when the API rejects the order?

Start with the HTTP response and the order’s network: they show whether submission was rejected and help you check the chain and wallet used to create the order.

Have your wallet address, signed order payload, API status and response body ready. Confirm that the wallet and chain match the quote. An EIP-712 signature is bound to a domain that includes the chain ID and verifying contract, so a mismatch can invalidate an otherwise well-formed signature.

Then compare the API’s expected signing scheme with the one you used. Confirm the signer matches the order’s owner or from address. If you use a smart-contract wallet, it may need ERC-1271 signature validation and the correct from address.

Does a mined approval prove the signed order is valid?

No: a mined approval grants the named spender access to the sell token, while order authentication remains a separate check.

Confirm the approval is on the order’s network, names GPv2VaultRelayer as spender and covers the sell token. A successful approval transaction alone does not establish that the order’s signature or submitted fields are valid.

Compare every submitted order field with the data you signed. Order parameters are final once signed and submitted; changing a field afterward means the signature no longer matches that order. If the payload changed, obtain a fresh quote, sign the resulting order and resubmit it.

How can you tell a rejected order from an unfilled one?

A rejected submission returns an HTTP error response; an accepted order has an order UID that you can inspect in CoW Explorer.

Use the response body to identify a submission failure, then correct the network, spender, signer, signing scheme or changed field it points to. If the API accepted the order, look up its UID in CoW Explorer and inspect its status to see whether it remains unfilled. That separates an authentication or submission problem from an order that was accepted but has not filled.