Build a limit order
build_limit_orderRead-only
Build a gasless CoW Protocol limit order (sell an ERC-20 for at least a target amount, valid until expiry). Returns EIP-712 typed data for the user's wallet to sign, the ERC-20 approve tx for CoW's vault relayer if the allowance is short, the current market amount for reference, and how to submit the signature. Never signs or submits. Result includes display markdown with chan images: show it to the user.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| owner | Yes | Wallet that signs and owns the order | |
| chainId | Yes | Chain id where CoW runs: 1 Ethereum, 8453 Base, 42161 Arbitrum, 137 Polygon, 56 BNB, 43114 Avalanche, 59144 Linea | |
| buyToken | Yes | Token to receive | |
| buyAmount | No | Minimum human amount to receive (the limit). Provide this OR limitPrice. | |
| sellToken | Yes | ERC-20 to sell (not the native token; wrap first) | |
| limitPrice | No | Price in buyToken per 1 sellToken. Provide this OR buyAmount. | |
| sellAmount | Yes | Human amount to sell, e.g. "100" | |
| expiresInHours | No | Default 168 (7 days) |