{"uid":"cap_3pR2CIQq82xkbI9mc6Ic-","slug":"spraay-gateway-uniswap-v3-swap-execute-ff1c7a6e","name":"Spraay Gateway Uniswap V3 Swap Execute","description":"Execute swap via Uniswap V3.","url":"https://gateway.spraay.app/api/v1/swap/execute","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"tokenIn":{"type":"string"},"amountIn":{"type":"string"},"tokenOut":{"type":"string"},"recipient":{"type":"string"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.015","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.015/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.015","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.015","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_lcGdG471PunvdmrCYSLZh","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.015","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Executes a token swap on Uniswap V3 for a specified token pair and amount, sending the output to a recipient address.","exampleAgentPrompt":"Swap 100 USDC (0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48) for ETH (0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2) and send the output to my wallet at 0xAbCd1234...5678.","exampleUseCases":[{"title":"Rebalance portfolio with token swap","prompt":"I need to rebalance my portfolio — swap 500 DAI (0x6B175474E89094C44Da98b954EedeAC495271d0F) for WBTC (0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599) and send the output to my wallet at 0xDeFi9876...1234."},{"title":"Convert payroll funds to stablecoins","prompt":"Convert 2 WETH (0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2) to USDC (0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48) on Uniswap V3 and send the USDC directly to our payroll address at 0xPay1234...5678."},{"title":"Settle escrow with on-chain swap","prompt":"Settle an escrow by swapping 1000 USDC (0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48) for DAI (0x6B175474E89094C44Da98b954EedeAC495271d0F) via Uniswap V3 and send the DAI straight to the recipient's wallet at 0xEscr5678...9012."}],"resultDescription":"Returns the result of the Uniswap V3 swap execution, including transaction details such as the output token amount received and confirmation that the swap was routed and settled on-chain to the specified recipient address.","failureModes":["Insufficient liquidity for the token pair on Uniswap V3 — swap reverts","Invalid or unrecognized token contract addresses — validation error","Recipient address malformed or missing — request rejected","amountIn too low to cover gas and fees — transaction fails","Slippage tolerance exceeded during execution — swap reverts","Payment of 0.015 USDC per call not fulfilled — 402 Payment Required"],"whenToPreferThis":"Use this endpoint when you need to programmatically execute a live token swap on Uniswap V3 via the Spraay gateway, particularly when the swap is part of a larger automated DeFi workflow (e.g. payroll, escrow settlement, or portfolio rebalancing) and you need on-chain execution with a specified recipient.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:40:17.270Z","isFirstParty":false}