{"uid":"cap_KA1tEtxM3HDObDr1-W5go","slug":"agent-rest-stop-token-swap-quote-068a26d6","name":"Agent Rest Stop Token Swap Quote","description":"One swap ticket for a pair.","url":"https://agent-gas-station.agent-gas-station.workers.dev/v1/CoinGap?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"have":{"type":"string"},"want":{"type":"string"},"amount":{"type":"string"}}},"responseSchema":null,"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_lkBMJOMmrI3QUIdX89dCs","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 a single swap ticket (rate/quote) for a given token pair and amount","exampleAgentPrompt":"What swap ticket do I get if I have USDC and want ETH, swapping 100?","exampleUseCases":[{"title":"Pre-trade swap rate check","prompt":"I have 500 USDC and want to swap it for SOL — can you pull me a swap ticket showing what I'd get?"},{"title":"Arbitrage opportunity scouting","prompt":"What's the current swap quote if I have ETH and want WBTC for an amount of 1?"},{"title":"Portfolio rebalancing estimate","prompt":"I'm thinking of converting 250 DAI into USDC — can you get me a swap ticket so I know the rate before I commit?"}],"resultDescription":"A swap ticket object representing the quoted exchange for the specified token pair and amount, including the rate or output amount for the conversion.","failureModes":["Unknown or unsupported token symbol in 'have' or 'want' fields returns an error","Zero or invalid amount string causes a bad-request response","Token pair with no liquidity may return no quote or an error","Service unavailable or worker timeout returns a 5xx error","Missing required fields returns a validation error"],"whenToPreferThis":"Use this endpoint when an agent needs a quick, single swap quote for a specific token pair and amount — particularly in lightweight agentic workflows that need on-demand pricing without executing a trade. Prefer this over full DEX aggregator APIs when simplicity, low cost ($0.01), and speed matter more than exhaustive routing.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:40:36.359Z","isFirstParty":false,"canonicalSlug":"agent-rest-stop-token-swap-quote-068a26d6"}