The order endpoint is used to submit a UniswapX intent. If the routing field in the response to a quote is any of DUTCH_V2, DUTCH_V3, LIMIT_ORDER, or PRIORITY this endpoint is used to submit your order to the UniswapX protocol to be filled by the filler network. These orders are gasless because the filler will pay the gas to complete the transaction.
The order will be validated and, if valid, will be submitted to the filler network. The network will try to fill the order at the quoted startAmount. If the order is not filled at the startAmount by the deadline, the amount will start decaying until the endAmount is reached. The order will remain open until it is either filled, canceled, or has expired by remaining unfilled beyond the decayEndTime.
For simplicity, the order request is identical to the quote response except for the addition of the signed permit.
The signed permit.
The routing for the proposed transaction.
DUTCH_LIMIT, CLASSIC, DUTCH_V2, DUTCH_V3, BRIDGE, LIMIT_ORDER, PRIORITY, WRAP, UNWRAP, CHAINED Encoded order submitted.
A unique ID for the request.
A unique ID for the order. Used to track the order's status.
The status of the order. Note that all of these are final states with the exception of Open, meaning that no further state changes will occur. Open - order is not yet filled by a filler. Expired - order has expired without being filled and is no longer fillable. Error - a catchall for other final states which are not otherwise specified, where the order will not be filled. Cancelled - order is cancelled. Note that to cancel an order, a new order must be placed with the same nonce as the prior open order and it must be placed within the same block as the original order. Filled - order is filled. Insufficient-funds - the swapper (you) do not have enough funds for the order to be completed and the order is cancelled and will not be filled. Unverified - order has not been verified yet.
open, expired, error, cancelled, filled, unverified, insufficient-funds