{"uid":"cap_M2N0ublfEYULI3cNaXq1T","slug":"x402-agent-tollbooth-smart-router-caea2cc7","name":"x402 Agent Tollbooth Smart Router","description":"Optimal Execution Smart Router. Computes optimal gas and slippage routing paths for Base AI agents and automated executors.","url":"https://x402-agent-tollbooth.onrender.com/toll/smart_router?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"amount":{"type":"string","description":"Trade amount"},"tokenIn":{"type":"string","description":"Input token address or symbol"},"tokenOut":{"type":"string","description":"Output token address or symbol"}}},"responseSchema":null,"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_8CZShYZmdoLbH2aTWAgjo","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":"Computes optimal gas and slippage routing paths for token swaps on Base, helping AI agents and automated executors execute trades efficiently","exampleAgentPrompt":"Find the optimal swap route for trading 500 USDC to ETH on Base — I need the best gas and slippage path before I execute.","exampleUseCases":[{"title":"Automated DeFi swap execution","prompt":"I want to swap 1000 USDC for WETH on Base — can you compute the optimal routing path with the best gas and slippage settings before I execute the trade?"},{"title":"Gas-efficient token trade planning","prompt":"What's the cheapest way in terms of gas and slippage to swap 0.5 ETH for USDC on Base? Give me the smart routing recommendation."},{"title":"AI agent pre-trade optimization","prompt":"Before my agent executes this trade, find the optimal execution path for swapping 250 DAI to cbETH on Base, factoring in gas costs and slippage."}],"resultDescription":"Returns the computed optimal routing path for a token swap on Base, including recommended gas parameters and slippage configuration for best execution of the specified trade amount between the input and output tokens.","failureModes":["Invalid or unrecognized token address/symbol returns an error","Unsupported token pair on Base network","Amount too small or too large for routing computation","Service unavailable due to Render.com cold start (free tier latency)","Payment failure via x402 protocol blocks the request"],"whenToPreferThis":"Use this endpoint when an AI agent or automated executor needs to pre-compute the optimal gas and slippage route for a token swap on Base before committing to execution. Prefer this over manual DEX interfaces when building automated trading bots, DeFi agents, or any system that needs programmatic routing recommendations at low cost ($0.001 USDC per call).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-21T18:30:45.407Z","isFirstParty":false,"canonicalSlug":"x402-agent-tollbooth-smart-router-caea2cc7"}