curl --request POST \
--url https://trade-api.gateway.uniswap.org/v1/swap_5792 \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"quote": {
"input": {
"token": "<string>",
"amount": "<string>"
},
"output": {
"token": "<string>",
"amount": "<string>",
"recipient": "<string>"
},
"swapper": "<string>",
"chainId": 1,
"slippage": 123,
"tradeType": "EXACT_INPUT",
"gasFee": "<string>",
"gasFeeUSD": "<string>",
"gasFeeQuote": "<string>",
"route": [
[
{
"type": "v2-pool",
"address": "<string>",
"tokenIn": {
"address": "<string>",
"chainId": 1,
"symbol": "ETH",
"decimals": "<string>",
"buyFeeBps": "<string>",
"sellFeeBps": "<string>"
},
"tokenOut": {
"address": "<string>",
"chainId": 1,
"symbol": "ETH",
"decimals": "<string>",
"buyFeeBps": "<string>",
"sellFeeBps": "<string>"
},
"reserve0": {
"token": {
"address": "<string>",
"chainId": 1,
"symbol": "ETH",
"decimals": "<string>",
"buyFeeBps": "<string>",
"sellFeeBps": "<string>"
},
"quotient": "<string>"
},
"reserve1": {
"token": {
"address": "<string>",
"chainId": 1,
"symbol": "ETH",
"decimals": "<string>",
"buyFeeBps": "<string>",
"sellFeeBps": "<string>"
},
"quotient": "<string>"
},
"amountIn": "<string>",
"amountOut": "<string>"
}
]
],
"portionBips": 123,
"portionAmount": "<string>",
"portionRecipient": "<string>",
"routeString": "<string>",
"quoteId": "<string>",
"gasUseEstimate": "<string>",
"blockNumber": "<string>",
"gasPrice": "<string>",
"maxFeePerGas": "<string>",
"maxPriorityFeePerGas": "<string>",
"txFailureReasons": [
"SIMULATION_ERROR"
],
"priceImpact": 123,
"aggregatedOutputs": [
{
"token": "<string>",
"amount": "<string>",
"recipient": "<string>",
"bps": 123,
"minAmount": "<string>"
}
]
},
"permitData": {
"domain": {},
"values": {},
"types": {}
},
"deadline": 123,
"urgency": "urgent"
}'