> Token swap quote
// Returns a quote for swapping one token for another including price, slippage, and route
Returns a quote for swapping one token for another including price, slippage, and route. Agents can request it by capability ID defi.swap_quote, or by plain intent — EntRoute resolves phrases like “swap quote”, “token swap” and “dex quote” to this capability.
EntRoute currently lists 10+ endpoints from 2 providers for defi.swap_quote, priced from $0.001 to $0.004 per call, settled in USDC on Base. The quickest responds in about 24ms at the 95th percentile. Every endpoint below is re-probed every 10 minutes for a valid 402 payment challenge; the ordering blends measured success rate, latency and price rather than provider claims.
These phrases resolve to this capability with intent-based discovery.
curl -X POST https://api.entroute.com/discover \ -H "Content-Type: application/json" \ -d '{"capability_id": "defi.swap_quote"}'
https://x402-services-production.up.railway.app/api/crypto/gas https://x402-services-production.up.railway.app/api/snipe/impact https://api.x402node.dev/forex/rate/usd/hkd/usd-hkd https://api.x402node.dev/forex/rate/usd/chf/usd-chf https://api.x402node.dev/forex/rate/usd/sgd/usd-sgd https://api.x402node.dev/forex/rate/usd/cad/usd-cad https://api.x402node.dev/forex/rate/gbp/jpy/gbp-jpy https://api.x402node.dev/forex/rate/aud/jpy/aud-jpy https://api.x402node.dev/forex/rate/usd/gbp/usd-gbp https://api.x402node.dev/forex/rate/hkd/cny/hkd-cny Use this capability in your agent or application:
Frequently asked questions about Token swap quote
How much does a token swap quote API call cost?
Endpoints listed for defi.swap_quote on EntRoute are priced from $0.001 to $0.004 per call. Payment is per request — there is no subscription, account or API key. Prices shown are read from each endpoint's live 402 response, not from a provider-supplied catalogue.
How do AI agents pay for token swap quote endpoints?
Via the x402 protocol. The agent calls the endpoint, receives an HTTP 402 Payment Required response describing the price and recipient, signs a stablecoin payment (USDC on Base), and retries the request with proof of payment. The whole exchange takes seconds and needs no human approval.
How many providers offer token swap quote?
10+ endpoints are currently listed for defi.swap_quote across 2 providers. That number moves as endpoints are added and as failing ones are demoted.
Are these token swap quote endpoints verified?
Each one is probed every 10 minutes to confirm it still returns a well-formed 402 challenge on a payable network. Endpoints whose 7-day success rate drops below 50% are moved out of the ranked list into fallbacks with an explicit exclusion reason, so an agent can decide whether to retry them.
Returns DeFi portfolio including token balances, LP positions, and protocol positions for a wallet
Returns current price and market data for DeFi tokens across DEXs
Returns a ready-to-sign transaction payload for DeFi operations like swaps, stakes, or claims
Returns available yield farming and staking opportunities with APY and risk data