{"uid":"cap_QNFCNR4kWtXGv8RcRJf0H","slug":"flow-best-execution-swap-quotes-for-ai-agents-af10e900","name":"Flow — Best-Execution Swap Quotes for AI Agents","description":"Use when an agent needs to know what profitable Base wallets are buying right now, or where social attention is spiking, before taking a position. Flow smart-wallet tracker: leaderboard of Base wallets ranked by early buys on pumping tokens, a real-time buy-signal feed (timestamp + block number per signal, stale flags past 10 min), a paper-trading record that copy-trades top wallets, and a social-velocity overlay showing where attention is spiking.","url":"https://flow-kg4x.vercel.app/api/smart-wallets?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"body":{"type":"object"},"type":{"type":"string","const":"http"},"method":{"enum":["GET","POST","PUT","PATCH"],"type":"string"},"headers":{"type":"object","additionalProperties":{"type":"string"}},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"queryParams":{"type":"object","additionalProperties":{"type":"string"}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"signals":[{"side":"buy","stale":false,"symbol":"WETH","amountUsd":2500}],"leaderboard":[{"rank":1,"wins":7,"wallet":"0x…"}],"paperRecord":{"totalPnlUsd":34.5,"totalTrades":12},"socialVelocity":{"spikes":[{"level":"hot","score":82,"token":"0x…"}]}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_zwMmnqfkZzXq4hrJJZU50","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns best-execution crypto swap quotes on Base by comparing Uniswap V3 and Aerodrome DEXes in ~600ms","exampleAgentPrompt":"Before I swap $2,500 worth of USDC to WETH on Base, can you check Flow to get the best-execution quote by comparing Uniswap V3 and Aerodrome so I know which DEX gives me the best rate?","exampleUseCases":[{"title":"Pre-trade best-price check for WETH","prompt":"I'm about to buy $2,500 of WETH on Base — before I confirm the swap, can you pull the best-execution quote from Flow comparing Uniswap V3 and Aerodrome so I get the best rate?"},{"title":"DeFi arbitrage signal monitoring","prompt":"Can you check Flow for any hot social velocity spikes or buy signals on Base tokens right now so I can decide whether there's an arbitrage opportunity worth acting on?"},{"title":"Agent leaderboard ranking lookup","prompt":"Pull the current smart wallet leaderboard from Flow so I can see which wallets are winning the most swaps on Base this week and how my paper trading record stacks up."}],"resultDescription":"Returns a JSON object containing buy/sell signals with token symbols and USD amounts, a ranked leaderboard of winning smart wallets, a paper trading record with total PnL and trade count, and social velocity spikes with hot-score ratings for Base tokens.","failureModes":["Payment not included or rejected — 402 response requiring 0.01 USDC x402 payment","DEX data unavailable or stale — signals marked with stale:true flag","Network latency spike causing quote to exceed 600ms freshness window","Invalid or missing required input parameters returning 400 error","Base network congestion causing quote inaccuracies"],"whenToPreferThis":"Use this endpoint when an AI agent is about to execute a token swap on Base and needs a fast (~600ms), no-API-key best-execution quote that aggregates across both Uniswap V3 and Aerodrome. Prefer this over calling individual DEX APIs directly when you want a single ranked comparison, social velocity signals, and a leaderboard context without managing multiple integrations.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-16T06:38:44.489Z","isFirstParty":false,"canonicalSlug":"flow-best-execution-swap-quotes-for-ai-agents-af10e900"}