{ "opencollection": "1.0.0", "info": { "name": "Token Trading Approval Order API", "version": "1.0.0" }, "request": { "auth": { "type": "apikey", "key": "x-api-key", "value": "{{x-api-key}}", "placement": "header" } }, "items": [ { "info": { "name": "Order", "type": "folder" }, "items": [ { "info": { "name": "Create a gasless order", "type": "http" }, "http": { "method": "POST", "url": "https://trade-api.gateway.uniswap.org/v1/order", "headers": [ { "name": "x-erc20eth-enabled", "value": "" } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "apikey", "key": "x-api-key", "value": "{{x-api-key}}", "placement": "header" } }, "docs": "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.\n\nThe 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" }, { "info": { "name": "Get gasless orders", "type": "http" }, "http": { "method": "GET", "url": "https://trade-api.gateway.uniswap.org/v1/orders", "params": [ { "name": "orderType", "value": "", "type": "query", "description": "The UniswapX order type to retrieve." }, { "name": "orderId", "value": "", "type": "query", "description": "A transaction hash for an order. `orderId` or `orderIds` must be provided, but not both." }, { "name": "orderIds", "value": "", "type": "query", "description": "A list of comma separated orderIds (transaction hashes). `orderId` or `orderIds` must be provided, but not both." }, { "name": "limit", "value": "", "type": "query" }, { "name": "orderStatus", "value": "", "type": "query", "description": "Filter by order status." }, { "name": "swapper", "value": "", "type": "query", "description": "Filter by swapper address." }, { "name": "sortKey", "value": "", "type": "query", "description": "Order the query results by the sort key." }, { "name": "sort", "value": "", "type": "query", "description": "Sort query. For example: `sort=gt(UNIX_TIMESTAMP)`, `sort=between(1675872827, 1675872930)`, or `lt(1675872930)`." }, { "name": "filler", "value": "", "type": "query", "description": "Filter by filler address." }, { "name": "cursor", "value": "", "type": "query" } ], "auth": { "type": "apikey", "key": "x-api-key", "value": "{{x-api-key}}", "placement": "header" } }, "docs": "Retrieve one or more gasless orders filtered, optionally filered by query param(s). The request must at minimum include one of the following parameters: `orderId`, `orderIds`, `orderStatus`, `swapper`, or `filler`." } ] } ], "bundled": true }