Guide · Product

How XAUConnect routing works

Written by XAUConnect Labs · Reviewed against live product behavior · Updated August 2026

XAUConnect does not pick a route because a DEX paid for placement. It asks several liquidity sources for the same trade, then ranks the answers by minimum received after platform fees — the floor your wallet is actually protected by — not by the headline exchange rate on a marketing card.

This article is the product description we wish existed when we shipped the first quote card: which venues are queried, what “best” means in code, why a two-hop path can beat a direct pool, and what still happens on-chain after you sign. It is written from the aggregator’s point of view, not from a generic “what is routing” textbook.

What the quote request actually asks

When you enter an amount, the app sends a quote request with chain, token-in, token-out, and size. On EVM networks the backend fans that out to configured aggregators — typically 1inch and 0x — plus any on-router path our own AggregatorRouter can build. On Solana the same idea runs through Jupiter. Each provider returns one or more candidate routes with an estimated output, gas hint, and a path label (pool names or hop list). XAUConnect does not custody the trade while this happens. The quote is a plan. Nothing moves until your wallet signs the later build step.

How “best route” is ranked

The ranking key is net output after the platform fee line you see on the card. A route that advertises a slightly better mid-market rate but consumes more of the fee or more price impact can lose to a quieter path that delivers more tokens to your address. We also discard quotes that fail simulation, return zero output, or cannot produce unsigned calldata/bytes. This is why two screenshots of “ETH → USDC” from different apps rarely match. They are not quoting the same graph, the same fee, or the same minimum-received math.

Single-hop, multi-hop, and split routes

A single-hop swap uses one pool. A multi-hop swap walks through an intermediate — often a stablecoin or the chain’s wrapped native — because no direct pool exists or the direct pool is thinner than the detour. Split routes break size across several pools so no single curve moves as far. Each extra hop adds an LP fee and a chance the second pool is stale by the time the first hop lands. The quote card’s hop list is there so you can reject a clever-looking path that routes through a token you do not want to touch.

What you sign is not the quote JSON

The quote is advisory. The build endpoint returns unsigned EVM transaction fields (`to`, `data`, `value`) or Solana VersionedTransaction bytes. Your wallet simulates that payload against current chain state. If the pool moved, simulation fails or the minimum-received check reverts — which is the contract doing its job, not XAUConnect “cancelling” you. We never broadcast EVM transactions for you. On Solana, submit-solana only relays already-signed bytes to RPC so browser wallets are not blocked by 403s. The private key never leaves the signer.

Cross-chain is a different machine

A same-chain swap settles in one transaction (plus an ERC-20 approval if needed). A cross-chain quote adds a bridge or messaging leg: you sign on the source chain, wait for confirmation, then receive a representation or a destination swap on the target chain. Latency, extra smart-contract risk, and wrapped-asset variants all apply. Treat the status panel as part of the trade, not as decoration.

What routing cannot fix

No aggregator can invent liquidity. If the only pool for a ticker is a $4k AMM with a 12% fee-on-transfer token, every route will look bad. Routing also cannot save you from pasting the wrong contract, signing on the wrong chain, or setting slippage so wide that a sandwich fills to your floor. Those are wallet and verification problems, not quote problems.

Legal

Risk disclosure

XAUConnect is a non-custodial swap aggregator. Digital assets are volatile and may lose value rapidly. Content on this page is educational and not investment advice. Verify every contract address on the official block explorer before approving a transaction.

Frequently asked questions

Does XAUConnect run its own AMM?

No. It is an aggregator. Liquidity lives in third-party pools (Uniswap-style AMMs, 1inch/0x graphs, Jupiter on Solana). Our on-chain EVM pieces are a fee collector and router that skim a disclosed platform fee — they are not the order book.

Why did a direct Uniswap quote look better than XAUConnect?

Compare minimum received after all fees, not the mid price. Also confirm you used the same token addresses, the same chain, and a quote taken in the same block window. A single-DEX UI often hides price impact that an aggregator is forced to show.

Can I force a specific DEX?

The product ranks by net output. If you need a specific venue you can still trade there directly; XAUConnect’s job is the comparison, not locking you into one pool.

Is the route guaranteed until I click confirm?

No. Quotes expire as blocks land. Re-quote if you wait. The on-chain guarantee is the minimum-received parameter inside the signed transaction, not the number you saw thirty seconds earlier.

Live execution

Trade on XAUConnect

Open the swap page to compare live routes, set slippage, and sign from your own wallet — fully non-custodial.

Continue exploring

Related markets, guides & networks

Curated next steps based on this topic — deepen your research before you trade.

Build programmatically

Swap via API for bots and AI agents — quotes, builds, and cross-chain routes.

Developer quickstart