{"uid":"cap_Cs-V2IIdmApsV3V9kN-BA","slug":"sylphy-token-swap-bd3d9fdd","name":"SYLPHY Token Swap Execution","description":"Sylphy helps wallets, apps, and AI agents execute payments and settlements with encrypted intent, policy checks, and audit proofs — while final settlement remains verifiable on Base.","url":"https://api.sylphyagent.com/api/swap","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"tokenIn":{"type":"string","description":"Input token address (use 0x0 for ETH)"},"amountIn":{"type":"string"},"deadline":{"type":"number"},"tokenOut":{"type":"string"},"minAmountOut":{"type":"string"}}},"responseSchema":{"type":"json","example":{"fee":"3000","swapId":"0xdef...","txHash":"0xghi...","amountOut":"997000"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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":"down","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_AnUa-fzlUsMRPpWaED9RW","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","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 Base, exchanging a specified input token for an output token with slippage protection and a deadline, returning a transaction hash and swap details.","exampleAgentPrompt":"Swap 1 ETH (0x0) for USDC (0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48) with a minimum output of 990000 USDC units and a deadline 10 minutes from now.","exampleUseCases":null,"resultDescription":"Returns a JSON object containing the swap ID (swapId), the on-chain transaction hash (txHash), the actual amount of output tokens received (amountOut), and the fee tier used (fee). The agent can use txHash to verify settlement on Base.","failureModes":["Slippage exceeded — amountOut would fall below minAmountOut, swap reverted","Deadline passed — the deadline timestamp has already elapsed","Invalid token address — tokenIn or tokenOut is not a valid ERC-20 contract on Base","Insufficient liquidity — not enough pool depth to fill the swap","Payment failure — x402 payment of 0.02 USDC not confirmed, request rejected","Malformed amountIn — non-numeric or negative value provided"],"whenToPreferThis":"Use this endpoint when an agent needs to programmatically execute a token swap on Base with on-chain settlement finality, encrypted intent, and a verifiable transaction hash. Prefer this over generic DEX aggregators when policy compliance, audit proofs, and privacy of intent are required alongside the swap execution.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T22:26:21.092Z","isFirstParty":false}