Skip to content
LayerHop

LayerHop guide · Updated

What is a cross-chain swap, and how is it different from a bridge?

A cross-chain swap trades one token for a different token on a different chain in one flow, for example ETH on Ethereum for USDC on Base. A bridge moves the same asset between chains. In practice the line is blurry, because many routes swap on one or both ends while they bridge, so what matters is what you pay, what you receive and the total cost on the quote.

How to make a cross-chain swap

  1. 1

    Pick both sides

    Choose the chain and token you pay and the chain and token you want. If the token is the same on both chains, it is a plain bridge; if it differs, it is a cross-chain swap.

  2. 2

    Compare routes

    LayerHop asks every provider that serves both chains for a quote and puts the one that delivers the most first. For cross-chain routes that includes Relay, deBridge and LI.FI.

  3. 3

    Sign one transaction

    You sign on the source chain only. The provider delivers on the destination chain, and the app follows the order until it arrives.

What it costs and how long it takes

Cost

The same as any LayerHop route: 0.15% in the app, plus the provider's fees and gas, all on the quote. A swap on one end can add some cost compared with bridging the same token, and the total on the quote already includes it.

Time

The estimated time on the quote is the provider's. Routes that also swap are not automatically slower or faster; compare them on the quote.

Common mistakes

  • Assuming a bridge needs two transactions: with an aggregator you sign once on the source chain.
  • Judging a route by the fee line alone instead of the amount received.
  • Forgetting that the recipient address must belong to the destination chain's family (0x for EVM, base58 for Solana).

Questions

Is a cross-chain swap different from a bridge?

Slightly. A bridge moves the same asset to another chain. A cross-chain swap changes the token as well. Many routes combine both, and the quote shows one total either way.

Is a cross-chain swap riskier than a same-chain swap?

It relies on a provider's contracts on two chains instead of one and takes longer to settle, so there are more moving parts. LayerHop does not hold your funds and shows the provider and the minimum received before you sign.

What is LayerHop's role?

It is a meta-aggregator: it asks the route providers for quotes, ranks them and adds a fee on top, 0.15% in the app. The provider executes the swap and the bridge.

Can I do this from code?

Yes. GET /v1/quote returns the routes, POST /v1/orders builds the transaction for the one you pick, and your wallet signs it. See the developer pages.

Ready when you are.

LayerHop never holds your funds: you review the quote and sign in your own wallet.