, so every page shipped two description tags and crawlers read this generic one instead of the page's own. Each route sets its own. --> %sveltekit.head%
+ token-swap-quote

> Token swap quote

// Returns a quote for swapping one token for another including price, slippage, and route

defiswaptradingquote

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.

// aliases.json

These phrases resolve to this capability with intent-based discovery.

"swap quote" "token swap" "dex quote" "exchange quote"
// discover.sh
curl -X POST https://api.entroute.com/discover \
  -H "Content-Type: application/json" \
  -d '{"capability_id": "defi.swap_quote"}'
// endpoints.json
10 results
$0.0010
https://x402-services-production.up.railway.app/api/crypto/gas
success: 100%
latency: 34ms
$0.0030
https://x402-services-production.up.railway.app/api/snipe/impact
success: 100%
latency: 33ms
$0.0040
https://api.x402node.dev/forex/rate/usd/hkd/usd-hkd
success: 100%
latency: 24ms
$0.0040
https://api.x402node.dev/forex/rate/usd/chf/usd-chf
success: 100%
latency: 25ms
$0.0040
https://api.x402node.dev/forex/rate/usd/sgd/usd-sgd
success: 100%
latency: 26ms
$0.0040
https://api.x402node.dev/forex/rate/usd/cad/usd-cad
success: 100%
latency: 26ms
$0.0040
https://api.x402node.dev/forex/rate/gbp/jpy/gbp-jpy
success: 100%
latency: 26ms
$0.0040
https://api.x402node.dev/forex/rate/aud/jpy/aud-jpy
success: 100%
latency: 26ms
$0.0040
https://api.x402node.dev/forex/rate/usd/gbp/usd-gbp
success: 100%
latency: 26ms
$0.0040
https://api.x402node.dev/forex/rate/hkd/cny/hkd-cny
success: 100%
latency: 27ms
// integrate.md

Use this capability in your agent or application:

// faq

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.