{"uid":"cap_QlR6VVIGUMjIozx6B0K_W","slug":"gate402-best-swap-execution-planner-6b3a8620","name":"gate402 Best Swap Execution Planner","description":"Best-execution intel for a Base token: which DEX pool to trade on and the estimated price impact + total cost for a given trade size, ranked across pools, with a split suggestion. Constant-product estimate for trading agents — the execution plan, not a firm quote.","url":"https://gate402.app/v1/best-swap","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"address":{"type":"string","description":"Base ERC-20 token contract address (0x-hex)."},"sizeUsd":{"type":"number","description":"Trade size in USD (default 1000)."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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.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_micwUQAjWPcB0RCN4lTtg","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":"Returns best-execution intelligence for a Base token trade: ranks DEX pools by estimated price impact and total cost for a given USD trade size, with a split suggestion.","exampleAgentPrompt":"Which DEX pool on Base gives me the best execution for buying $3000 worth of the token at address 0x4200000000000000000000000000000000000006, and what's the estimated price impact and split suggestion?","exampleUseCases":[{"title":"Minimize slippage on large token buy","prompt":"I want to buy $10,000 worth of the Base token at 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913 — which DEX pool will give me the least price impact and is there a split trade recommendation?"},{"title":"Compare DEX pools before executing a swap","prompt":"Before I swap into this Base token at address 0x4ed4e862860bed51a9570b96d89af5e1b0efefed, can you rank the available DEX pools for a $500 trade size and tell me the estimated total cost on each?"},{"title":"Automated agent pre-trade routing check","prompt":"I'm about to execute a $2000 trade on this Base token 0x0578d8a44db98b23bf096a382e016e29a5ce0ffe — check the best pool to route through and give me the price impact estimate so I can decide if it's worth it."}],"resultDescription":"A ranked list of DEX pools available for the specified Base token, each with estimated price impact and total cost for the given USD trade size, plus a suggested split-trade strategy to minimize market impact. Based on constant-product (AMM) math — an indicative execution plan, not a firm quote.","failureModes":["Invalid or non-ERC-20 contract address returns an error or empty pool list","Token with no active liquidity pools returns no results","Very large trade size relative to pool liquidity may produce extreme price impact estimates","Network latency or DEX data feed issues may cause stale or unavailable pool data","Non-Base-chain addresses will not return valid results"],"whenToPreferThis":"Use this endpoint when an agent needs to plan a token swap on Base and wants to minimize slippage or total cost — especially for larger trade sizes where pool depth and price impact matter. Prefer this over a simple price lookup when you need routing intelligence, split-trade suggestions, or a ranked comparison across multiple DEX pools before committing to execution.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:33:15.549Z","isFirstParty":false}