Create a gasless order
Authorization
x-api-keystringrequiredheaderHeaders
x-erc20eth-enabledbooleandefault:falseEnable native ETH input support for UniswapX via ERC20-ETH (EIP-7914). When set to true and tokenIn is the native currency address (e.g. 0x0000000000000000000000000000000000000000), the API may return UniswapX routes that spend native ETH for supported wallets.
Body
application/jsonsignaturestringrequiredThe signed permit.
routingenumThe routing for the proposed transaction.
Response
Encoded order submitted.
requestIdstringrequiredA unique ID for the request.
orderIdstringrequiredA unique ID for the order. Used to track the order's status.
orderStatusenumrequiredThe 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.
/ordercurl --request POST \
--url 'https://trade-api.gateway.uniswap.org/v1/order' \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--header 'x-erc20eth-enabled: false'{ "requestId": "<string>", "orderId": "<string>", "orderStatus": "<string>"}