{"uid":"cap_4tSdD9Z6Gm7LJ5ceVupe2","slug":"warppay402-aerodrome-swap-23beb0e4","name":"WarpPay402 Aerodrome Swap","description":"Non-Custodial x402 Monetization Server & MCP Tools for AI Agents.","url":"https://api.warppay402.com/api/v1/tools/aerodrome-swap?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["tokenIn","tokenOut","amountIn","decimalsIn","isStable"],"properties":{"tokenIn":{"type":"string"},"amountIn":{"type":"string"},"isStable":{"type":"boolean"},"tokenOut":{"type":"string"},"decimalsIn":{"type":"number"}}},"responseSchema":{"type":"json","example":{"success":true,"quotedAmountOut":"1000000","transactionHash":"0x123..."}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_KX_XtIX-IJABRQX9bN4Eg","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Executes or quotes a token swap on the Aerodrome DEX (Base chain) given input/output token addresses, amount, decimal precision, and pool type (stable or volatile).","exampleAgentPrompt":"Swap 100 USDC (6 decimals) for WETH on Aerodrome using a stable pool — tokenIn is 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 and tokenOut is 0x4200000000000000000000000000000000000006.","exampleUseCases":[{"title":"Automated DeFi portfolio rebalancing","prompt":"Rebalance my portfolio by swapping 500 USDC (6 decimals) for WETH on Aerodrome using a volatile pool — tokenIn is 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 and tokenOut is 0x4200000000000000000000000000000000000006."},{"title":"Stablecoin-to-stablecoin stable swap","prompt":"Swap 1000 USDC (6 decimals) for DAI on Aerodrome using a stable pool — tokenIn is 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 and tokenOut is 0x50c5725949A6F0c72E6C4a641F24049A917DB0Cb."},{"title":"AI agent executes on-chain trade","prompt":"My agent needs to swap 250 WETH (18 decimals) for USDC on Aerodrome via the volatile pool — tokenIn is 0x4200000000000000000000000000000000000006 and tokenOut is 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913, amount is 250000000000000000000."}],"resultDescription":"Returns a JSON object with a success boolean, quotedAmountOut (the estimated output token amount as a string in the token's smallest unit), and transactionHash (the on-chain tx hash if the swap was executed on Base chain).","failureModes":["Invalid token address returns an error or failed transaction","Insufficient liquidity in the selected pool causes swap failure","Wrong decimalsIn value leads to incorrect amount calculation","isStable mismatch with the actual pool type causes routing failure","Slippage too high results in transaction revert","Payment of 0.001 USDC via x402 not completed causes 402 rejection"],"whenToPreferThis":"Use this endpoint when an AI agent needs to programmatically execute or quote a token swap on the Aerodrome DEX on Base chain, especially when operating in a non-custodial x402 micropayment context. Prefer this over generic bridge or swap APIs when the target DEX is specifically Aerodrome Finance and the chain is Base.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T04:26:35.808Z","isFirstParty":false,"canonicalSlug":"warppay402-aerodrome-swap-23beb0e4"}