{"uid":"cap_qbVb8Rgi-pTNI2gfCiASy","slug":"402-com-tr-swap-route-optimizer-71b80c39","name":"402.com.tr Swap Route Optimizer","description":"Give a token and a trade size in USD → the deepest Base pool to route through, estimated price impact, a suggested slippage tolerance + minimum-out, all gated on a honeypot/sell-tax check of the token you'd receive (no point routing into something you can't sell). Moves an agent from analysis to action in one call.","url":"https://402.com.tr/api/x402/swap-route","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":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"pathParams":{"type":"object"},"queryParams":{"type":"object","required":["tokenOut"],"properties":{"tokenOut":{"type":"string","description":"Token to receive"},"amountUsd":{"type":"string","description":"Trade size in USD"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.03","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.03/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_RQVJk1De4yU5kHBEprgak","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.03","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the optimal Base DEX pool routing for a token swap, including price impact, slippage tolerance, minimum-out amount, and honeypot/sell-tax safety check on the output token.","exampleAgentPrompt":"Before I swap $500 into the Base token at address 0xabc123, find me the deepest pool to route through, tell me the estimated price impact and recommended slippage, and confirm it's not a honeypot I can't sell later.","exampleUseCases":null,"resultDescription":"Returns the recommended Base liquidity pool route, estimated price impact percentage, suggested slippage tolerance, minimum tokens out for the given USD trade size, and a honeypot/sell-tax safety verdict for the output token — everything needed to go from analysis to trade execution safely.","failureModes":["Invalid or non-existent tokenOut address returns an error or empty route","Token flagged as honeypot — endpoint still returns result but flags the token as unsafe to trade","No liquidity pool found for the requested token returns a null route","amountUsd not provided defaults to a baseline estimate which may be less accurate","Transient RPC errors on Base chain may cause timeout or stale data","Payment of $0.03 USDC via x402 not completed results in 402 Payment Required error"],"whenToPreferThis":"Use this endpoint when an agent needs to execute or prepare a token swap on Base chain and requires a single call that covers routing intelligence, price impact estimation, slippage recommendation, and sell-tax/honeypot safety validation simultaneously. Prefer over manual DEX aggregator queries when agent safety checks and routing need to be bundled together before committing to a trade.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:55:57.490Z","isFirstParty":false}