Uniswap Create a gasless order
Create a gasless order with the Uniswap API. The request takes a quote and a routing. Use it for on-chain or crypto market research. Use the response in a DeFi workflow for the selected protocol, and compare the request and response with the provider example.
- Selected price
- $0 / callPublished pricing
- Sellers / APIs
- 1 / 1
- Requests · 30d
- —Loading...
- Success rate · 30d
- —Loading...
Uniswap Create a gasless order
Prepare your request, then continue with your agent.
Selected price
$0 / call
- Provider
- Pricing
On this page
Playground
Run sends a real API request. Charges follow the published API contract.
Response structure
No response structure is available yet. Run a request to inspect its response.
No response structure is available yet. Run a request to inspect its response.
Sellers
| Seller | Pricing | Requests · 30d | Performance | Access |
|---|---|---|---|---|
uniswapCurrent Uniswap Create a gasless order · POST · View API reference | $0 / call | — | —successP50— |
- Unit price
- $0
Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 3. Price update time: not supplied.
Total $0
API
- Method
- POST
- Endpoint
https://api.openany.si/v1/agent-apis/uniswap/v1/order- Content type
- application/json
- Authentication
Authorization: Bearer $OPENANY_API_KEY
Generated request template. Review placeholder values and input constraints before use.
curl \
'https://api.openany.si/v1/agent-apis/uniswap/v1/order' \
-X POST \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json' \
--data-raw '{
"signature": "<REPLACE_signature>",
"quote": "<REPLACE_quote>",
"routing": "CLASSIC"
}'Input parameters
Fields in this listing; additional options and input encoding can vary by provider.
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
x-erc20eth-enabled | Request headersheaders | boolean | No | Enable 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. |
x-agent-info | Request headersheaders | string | No | Optional attribution hint for AI-agent traffic; send it if an AI agent built or operates your integration. The value is a JSON object with up to three fields: `decision_origin` (required, exactly `autonomous` or `human_mediated`, case-sensitive), `integration_name` (optional string naming your integration, e.g. `my-trading-bot`), and `version` (optional string identifying your integration's version). Any other key is dropped, never rejected. The raw value must be at most 1024 bytes of printable US-ASCII (`0x20`-`0x7E`), so send non-ASCII text as JSON `\u` escapes; `integration_name` and `version` are each limited to 256 UTF-16 code units and may not contain control characters, U+2028, U+2029, or U+FFFD. Send the header once: repeated header lines are joined with `, ` and the joined string is what gets parsed, so two complete objects fail as invalid JSON while a single object split across two lines still parses. The header is analytics-only and never affects the request: omitting it, sending it, or sending a value that fails these rules never changes the response status, body, or swap behavior. A value that fails to parse is dropped and reported by the `x-agent-info-status` response header. Never put a user ID, wallet address, email, session token, or API key in these fields. maxLength: 1024 |
quote | JSON request bodybody | object | Yes | Nested fields and variantsobjectNested fields and variants
objectNested fields and variants
objectNested fields and variants
|
routing | JSON request bodybody | string | Yes | enum: "CLASSIC", "DUTCH_LIMIT", "DUTCH_V2", "DUTCH_V3", "BRIDGE", "LIMIT_ORDER", "PRIORITY", "WRAP", "UNWRAP", "CHAINED" |
signature | JSON request bodybody | string | Yes |
Required markers inside a nested object or variant apply when that object or variant is used.
Sample response
No response example is configured. A real response is available only after running the API, or when a published sample is added.
Agent integration
Copy the resource contract without sharing an API key.
View API Markdown
# Uniswap Create a gasless order
Create a gasless order with the Uniswap API. The request takes a quote and a routing. Use it for on-chain or crypto market research. Use the response in a DeFi workflow for the selected protocol, and compare the request and response with the provider example.
Documentation: https://openany.si/apis/788c4eba-30b4-4d1a-96d4-d4cc61741082
Method: POST
Endpoint: https://api.openany.si/v1/agent-apis/uniswap/v1/order
Price: $0 / call
Provider: uniswap
Contract revision: 3
Price source: OpenAny public API contract and documented provider unit rates. Price update time: not supplied.
Use OPENANY_API_KEY from the environment. API Key calls use your shared balance.
## Generated request template — review values before use
```bash
curl \
'https://api.openany.si/v1/agent-apis/uniswap/v1/order' \
-X POST \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json' \
--data-raw '{
"signature": "<REPLACE_signature>",
"quote": "<REPLACE_quote>",
"routing": "CLASSIC"
}'
```
## API contract
```json
{
"resource_type": "api",
"name": "Uniswap Create a gasless order",
"endpoint": "https://api.openany.si/v1/agent-apis/uniswap/v1/order",
"method": "POST",
"content_type": "application/json",
"execution_mode": "sync",
"authentication": {
"type": "bearer",
"environment_variable": "OPENANY_API_KEY"
},
"inputs": [
{
"description": "Enable 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.",
"location": "header",
"name": "x-erc20eth-enabled",
"nullable": false,
"required": false,
"type": "boolean"
},
{
"description": "Optional attribution hint for AI-agent traffic; send it if an AI agent built or operates your integration. The value is a JSON object with up to three fields: `decision_origin` (required, exactly `autonomous` or `human_mediated`, case-sensitive), `integration_name` (optional string naming your integration, e.g. `my-trading-bot`), and `version` (optional string identifying your integration's version). Any other key is dropped, never rejected. The raw value must be at most 1024 bytes of printable US-ASCII (`0x20`-`0x7E`), so send non-ASCII text as JSON `\\u` escapes; `integration_name` and `version` are each limited to 256 UTF-16 code units and may not contain control characters, U+2028, U+2029, or U+FFFD. Send the header once: repeated header lines are joined with `, ` and the joined string is what gets parsed, so two complete objects fail as invalid JSON while a single object split across two lines still parses. The header is analytics-only and never affects the request: omitting it, sending it, or sending a value that fails these rules never changes the response status, body, or swap behavior. A value that fails to parse is dropped and reported by the `x-agent-info-status` response header. Never put a user ID, wallet address, email, session token, or API key in these fields.",
"location": "header",
"max_length": 1024,
"name": "x-agent-info",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "Complete public Uniswap request body. Internal fields are prohibited. Source-only annotations are kept in the raw OpenAPI snapshot.",
"json_schema": {
"description": "Complete public Uniswap request body. Internal fields are prohibited. Source-only annotations are kept in the raw OpenAPI snapshot.",
"properties": {
"quote": {
"oneOf": [
{
"allOf": [
{
"not": {
"anyOf": [
{
"required": [
"priceDifference"
]
}
]
}
}
],
"properties": {
"aggregatedOutputs": {
"items": {
"properties": {
"amount": {
"pattern": "^[0-9]+$",
"type": "string"
},
"bps": {
"multipleOf": 0.01,
"type": "number"
},
"fee": {
"enum": [
"INTEGRATOR"
],
"type": "string"
},
"minAmount": {
"type": "string"
},
"recipient": {
"pattern": "^(0x)?[0-9a-fA-F]{40}$",
"type": "string"
},
"token": {
"pattern": "^(0x)?[0-9a-fA-F]{40}$",
"type": "string"
}
},
"type": "object"
},
"type": "array"
},
"classicGasUseEstimateUSD": {
"type": "string"
},
"deadlineBufferSecs": {
"type": "number"
},
"encodedOrder": {
"type": "string"
},
"input": {
"properties": {
"amount": {
"pattern": "^[0-9]+$",
"type": "string"
},
"maximumAmount": {
"pattern": "^[0-9]+$",
"type": "string"
},
"token": {
"pattern": "^(0x)?[0-9a-fA-F]{40}$",
"type": "string"
}
},
"type": "object"
},
"orderId": {
"type": "string"
},
"orderInfo": {
"properties": {
"additionalValidationContract": {
"deprecated": true,
"type": "string"
},
"additionalValidationData": {
"deprecated": true,
"type": "string"
},
"chainId": {
"enum": [
1,
10,
56,
130,
137,
143,
196,
324,
480,
1868,
4217,
4326,
4663,
5042,
8453,
10143,
42161,
42220,
43114,
57073,
59144,
81457,
7777777,
1301,
84532,
11155111
],
"type": "number"
},
"cosigner": {
"pattern": "^(0x)?[0-9a-fA-F]{40}$",
"type": "string"
},
"deadline": {
"type": "number"
},
"input": {
"properties": {
"endAmount": {
"type": "string"
},
"startAmount": {
"type": "string"
},
"token": {
"pattern": "^(0x)?[0-9a-fA-F]{40}$",
"type": "string"
}
},
"required": [
"startAmount",
"endAmount",
"type"
],
"type": "object"
},
"nonce": {
"type": "string"
},
"outputs": {
"items": {
"properties": {
"endAmount": {
"type": "string"
},
"recipient": {
"pattern": "^(0x)?[0-9a-fA-F]{40}$",
"type": "string"
},
"startAmount": {
"type": "string"
},
"token": {
"pattern": "^(0x)?[0-9a-fA-F]{40}$",
"type": "string"
}
},
"required": [
"startAmount",
"endAmount",
"token",
"recipient"
],
"type": "object"
},
"type": "array"
},
"reactor": {
"pattern": "^(0x)?[0-9a-fA-F]{40}$",
"type": "string"
},
"swapper": {
"pattern": "^(0x)?[0-9a-fA-F]{40}$",
"type": "string"
}
},
"required": [
"chainId",
"nonce",
"reactor",
"swapper",
"deadline",
"validationContract",
"validationData",
"startTime",
"endTime",
"exclusiveFiller",
"exclusivityOverrideBps",
"input",
"outputs"
],
"type": "object"
},
"output": {
"properties": {
"amount": {
"pattern": "^[0-9]+$",
"type": "string"
},
"minimumAmount": {
"pattern": "^[0-9]+$",
"type": "string"
},
"recipient": {
"pattern": "^(0x)?[0-9a-fA-F]{40}$",
"type": "string"
},
"token": {
"pattern": "^(0x)?[0-9a-fA-F]{40}$",
"type": "string"
}
},
"type": "object"
},
"quoteId": {
"type": "string"
},
"slippageTolerance": {
"maximum": 100,
"minimum": 0,
"pattern": "^[0-9]{0,3}\\.?[0-9]{0,2}$",
"type": "number"
}
},
"required": [
"encodedOrder",
"orderInfo",
"orderId"
],
"type": "object"
},
{
"allOf": [
{
"not": {
"anyOf": [
{
"required": [
"priceDifference"
]
}
]
}
}
],
"properties": {
"aggregatedOutputs": {
"items": {
"properties": {
"amount": {
"pattern": "^[0-9]+$",
"type": "string"
},
"bps": {
"multipleOf": 0.01,
"type": "number"
},
"fee": {
"enum": [
"INTEGRATOR"
],
"type": "string"
},
"minAmount": {
"type": "string"
},
"recipient": {
"pattern": "^(0x)?[0-9a-fA-F]{40}$",
"type": "string"
},
"token": {
"pattern": "^(0x)?[0-9a-fA-F]{40}$",
"type": "string"
}
},
"type": "object"
},
"type": "array"
},
"classicGasUseEstimateUSD": {
"type": "string"
},
"deadlineBufferSecs": {
"type": "number"
},
"encodedOrder": {
"type": "string"
},
"expectedAmountIn": {
"type": "string"
},
"expectedAmountOut": {
"type": "string"
},
"input": {
"properties": {
"amount": {
"pattern": "^[0-9]+$",
"type": "string"
},
"maximumAmount": {
"pattern": "^[0-9]+$",
"type": "string"
},
"token": {
"pattern": "^(0x)?[0-9a-fA-F]{40}$",
"type": "string"
}
},
"type": "object"
},
"orderId": {
"type": "string"
},
"orderInfo": {
"properties": {
"additionalValidationContract": {
"deprecated": true,
"type": "string"
},
"additionalValidationData": {
"deprecated": true,
"type": "string"
},
"chainId": {
"enum": [
1,
10,
56,
130,
137,
143,
196,
324,
480,
1868,
4217,
4326,
4663,
5042,
8453,
10143,
42161,
42220,
43114,
57073,
59144,
81457,
7777777,
1301,
84532,
11155111
],
"type": "number"
},
"cosigner": {
"pattern": "^(0x)?[0-9a-fA-F]{40}$",
"type": "string"
},
"deadline": {
"type": "number"
},
"input": {
"properties": {
"adjustmentPerGweiBaseFee": {
"type": "string"
},
"curve": {
"properties": {
"relativeAmounts": {
"items": {
"type": "string"
},
"type": "array"
},
"relativeBlocks": {
"items": {
"type": "number"
},
"type": "array"
}
},
"required": [
"type"
],
"type": "object"
},
"maxAmount": {
"type": "string"
},
"startAmount": {
"type": "string"
},
"token": {
"pattern": "^(0x)?[0-9a-fA-F]{40}$",
"type": "string"
}
},
"required": [
"startAmount",
"maxAmount",
"adjustmentPerGweiBaseFee",
"curve",
"token"
],
"type": "object"
},
"nonce": {
"type": "string"
},
"outputs": {
"items": {
"properties": {
"adjustmentPerGweiBaseFee": {
"type": "string"
},
"curve": {
"properties": {
"relativeAmounts": {
"items": {
"type": "string"
},
"type": "array"
},
"relativeBlocks": {
"items": {
"type": "number"
},
"type": "array"
}
},
"required": [
"type"
],
"type": "object"
},
"minAmount": {
"type": "string"
},
"recipient": {
"pattern": "^(0x)?[0-9a-fA-F]{40}$",
"type": "string"
},
"startAmount": {
"type": "string"
},
"token": {
"pattern": "^(0x)?[0-9a-fA-F]{40}$",
"type": "string"
}
},
"required": [
"startAmount",
"maxAmount",
"adjustmentPerGweiBaseFee",
"curve",
"token",
"recipient"
],
"type": "object"
},
"type": "array"
},
"reactor": {
"pattern": "^(0x)?[0-9a-fA-F]{40}$",
"type": "string"
},
"startingBaseFee": {
"type": "string"
},
"swapper": {
"pattern": "^(0x)?[0-9a-fA-F]{40}$",
"type": "string"
}
},
"required": [
"chainId",
"nonce",
"reactor",
"swapper",
"deadline",
"validationContract",
"validationData",
"startTime",
"endTime",
"exclusiveFiller",
"exclusivityOverrideBps",
"input",
"outputs"
],
"type": "object"
},
"output": {
"properties": {
"amount": {
"pattern": "^[0-9]+$",
"type": "string"
},
"minimumAmount": {
"pattern": "^[0-9]+$",
"type": "string"
},
"recipient": {
"pattern": "^(0x)?[0-9a-fA-F]{40}$",
"type": "string"
},
"token": {
"pattern": "^(0x)?[0-9a-fA-F]{40}$",
"type": "string"
}
},
"type": "object"
},
"quoteId": {
"type": "string"
},
"slippageTolerance": {
"maximum": 100,
"minimum": 0,
"pattern": "^[0-9]{0,3}\\.?[0-9]{0,2}$",
"type": "number"
}
},
"required": [
"encodedOrder",
"orderInfo",
"orderId"
],
"type": "object"
},
{
"allOf": [
{
"not": {
"anyOf": [
{
"required": [
"priceDifference"
]
}
]
}
}
],
"properties": {
"aggregatedOutputs": {
"items": {
"properties": {
"amount": {
"pattern": "^[0-9]+$",
"type": "string"
},
"bps": {
"multipleOf": 0.01,
"type": "number"
},
"fee": {
"enum": [
"INTEGRATOR"
],
"type": "string"
},
"minAmount": {
"type": "string"
},
"recipient": {
"pattern": "^(0x)?[0-9a-fA-F]{40}$",
"type": "string"
},
"token": {
"pattern": "^(0x)?[0-9a-fA-F]{40}$",
"type": "string"
}
},
"type": "object"
},
"type": "array"
},
"classicGasUseEstimateUSD": {
"type": "string"
},
"deadlineBufferSecs": {
"type": "number"
},
"encodedOrder": {
"type": "string"
},
"expectedAmountIn": {
"pattern": "^[0-9]+$",
"type": "string"
},
"expectedAmountOut": {
"pattern": "^[0-9]+$",
"type": "string"
},
"input": {
"properties": {
"amount": {
"pattern": "^[0-9]+$",
"type": "string"
},
"maximumAmount": {
"pattern": "^[0-9]+$",
"type": "string"
},
"token": {
"pattern": "^(0x)?[0-9a-fA-F]{40}$",
"type": "string"
}
},
"type": "object"
},
"orderId": {
"type": "string"
},
"orderInfo": {
"properties": {
"additionalValidationContract": {
"deprecated": true,
"type": "string"
},
"additionalValidationData": {
"deprecated": true,
"type": "string"
},
"auctionStartBlock": {
"type": "string"
},
"baselinePriorityFeeWei": {
"type": "string"
},
"chainId": {
"enum": [
1,
10,
56,
130,
137,
143,
196,
324,
480,
1868,
4217,
4326,
4663,
5042,
8453,
10143,
42161,
42220,
43114,
57073,
59144,
81457,
7777777,
1301,
84532,
11155111
],
"type": "number"
},
"cosigner": {
"pattern": "^(0x)?[0-9a-fA-F]{40}$",
"type": "string"
},
"deadline": {
"type": "number"
},
"input": {
"properties": {
"amount": {
"pattern": "^[0-9]+$",
"type": "string"
},
"mpsPerPriorityFeeWei": {
"type": "string"
},
"token": {
"pattern": "^(0x)?[0-9a-fA-F]{40}$",
"type": "string"
}
},
"required": [
"amount",
"token",
"mpsPerPriorityFeeWei"
],
"type": "object"
},
"nonce": {
"type": "string"
},
"outputs": {
"items": {
"properties": {
"amount": {
"pattern": "^[0-9]+$",
"type": "string"
},
"mpsPerPriorityFeeWei": {
"type": "string"
},
"recipient": {
"pattern": "^(0x)?[0-9a-fA-F]{40}$",
"type": "string"
},
"token": {
"pattern": "^(0x)?[0-9a-fA-F]{40}$",
"type": "string"
}
},
"required": [
"amount",
"token",
"recipient",
"mpsPerPriorityFeeWei"
],
"type": "object"
},
"type": "array"
},
"reactor": {
"pattern": "^(0x)?[0-9a-fA-F]{40}$",
"type": "string"
},
"swapper": {
"pattern": "^(0x)?[0-9a-fA-F]{40}$",
"type": "string"
}
},
"required": [
"chainId",
"nonce",
"reactor",
"swapper",
"deadline",
"validationContract",
"validationData",
"auctionStartBlock",
"baselinePriorityFeeWei",
"input",
"outputs",
"cosigner"
],
"type": "object"
},
"output": {
"properties": {
"amount": {
"pattern": "^[0-9]+$",
"type": "string"
},
"minimumAmount": {
"pattern": "^[0-9]+$",
"type": "string"
},
"recipient": {
"pattern": "^(0x)?[0-9a-fA-F]{40}$",
"type": "string"
},
"token": {
"pattern": "^(0x)?[0-9a-fA-F]{40}$",
"type": "string"
}
},
"type": "object"
},
"quoteId": {
"type": "string"
},
"slippageTolerance": {
"maximum": 100,
"minimum": 0,
"pattern": "^[0-9]{0,3}\\.?[0-9]{0,2}$",
"type": "number"
}
},
"required": [
"encodedOrder",
"orderInfo",
"orderId"
],
"type": "object"
}
]
},
"routing": {
"enum": [
"CLASSIC",
"DUTCH_LIMIT",
"DUTCH_V2",
"DUTCH_V3",
"BRIDGE",
"LIMIT_ORDER",
"PRIORITY",
"WRAP",
"UNWRAP",
"CHAINED"
],
"type": "string"
},
"signature": {
"type": "string"
}
},
"required": [
"signature",
"quote",
"routing"
],
"type": "object"
},
"location": "body",
"name": "body",
"nullable": false,
"pointer": "",
"required": true,
"type": "object"
}
],
"billing": {
"currency": "USD",
"mode": "fixed",
"priceMicroUsd": "0",
"rounding": null,
"unit": "call",
"unitQuantity": null
},
"examples": []
}
```Error handling
| Status | Next step |
|---|---|
400 | Check the offering and request fields. |
401 / 403 | Verify your credentials and access permissions. |
402 | Inspect the selected access mode and returned payment requirements. |
429 | Respect the returned rate limit and retry guidance. |
5xx | Inspect the error and usage record before retrying a paid operation. |
Examples
Generated request template
Generated from input parameters. Replace placeholder values before use.
Prepare your environment
Use a terminal with cURL installed.
Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.
Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.
Terminal · macOS / Linuxprintf 'OpenAny API key: ' read -r -s OPENANY_API_KEY export OPENANY_API_KEY printf '\n'Run the request
Paste the complete command below into your terminal.
Values to replace before running 3
Review these request fields before running. Keep the published provider and request method unchanged.
x-erc20eth-enabled- Enable 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.
x-agent-info- Optional attribution hint for AI-agent traffic; send it if an AI agent built or operates your integration. The value is a JSON object with up to three fields: `decision_origin` (required, exactly `autonomous` or `human_mediated`, case-sensitive), `integration_name` (optional string naming your integration, e.g. `my-trading-bot`), and `version` (optional string identifying your integration's version). Any other key is dropped, never rejected. The raw value must be at most 1024 bytes of printable US-ASCII (`0x20`-`0x7E`), so send non-ASCII text as JSON `\u` escapes; `integration_name` and `version` are each limited to 256 UTF-16 code units and may not contain control characters, U+2028, U+2029, or U+FFFD. Send the header once: repeated header lines are joined with `, ` and the joined string is what gets parsed, so two complete objects fail as invalid JSON while a single object split across two lines still parses. The header is analytics-only and never affects the request: omitting it, sending it, or sending a value that fails these rules never changes the response status, body, or swap behavior. A value that fails to parse is dropped and reported by the `x-agent-info-status` response header. Never put a user ID, wallet address, email, session token, or API key in these fields.
body- Complete public Uniswap request body. Internal fields are prohibited. Source-only annotations are kept in the raw OpenAPI snapshot.
Terminal · cURLcurl \ 'https://api.openany.si/v1/agent-apis/uniswap/v1/order' \ -X POST \ -H "Authorization: Bearer $OPENANY_API_KEY" \ -H 'Content-Type: application/json' \ --data-raw '{ "signature": "<REPLACE_signature>", "quote": "<REPLACE_quote>", "routing": "CLASSIC" }'Check the response
No response example is configured. Verify the actual status and response after an approved API call.