# FAQ

> Answers to common questions about LayerHop fees, custody, chains, amounts, API keys, rate limits, webhooks, the MCP server, SDK availability, testnets and order status.

Source: https://docs.layerhop.com/faq

Short answers to the questions developers ask most about LayerHop, with links to the page that covers each topic in full.

## Product

### What is LayerHop?

LayerHop is a non-custodial meta-aggregator for token swaps and bridging across 71 chains, EVM and Solana. It asks Jupiter, Relay, deBridge, 0x, KyberSwap and LI.FI for a quote in parallel, ranks the answers by what the user receives, and returns a transaction the user's wallet signs. See the [Introduction](/).

### Does LayerHop hold my users' funds?

No. The user's wallet signs and sends transactions directly to the provider's contracts. LayerHop never receives funds or keys. See [Non-custodial model](/concepts/non-custodial).

### Which chains does LayerHop support?

71 chains, from Ethereum, Base, Arbitrum, BNB Chain and Solana to Berachain, HyperEVM, Monad and Robinhood Chain. The full list, with slugs, ids and the providers per chain, is on [Supported chains & tokens](/chains); the live list is `GET /v1/chains`.

### Which providers are live?

Jupiter, Relay, deBridge, 0x, KyberSwap and LI.FI. Mayan is built but held back in production; it is available on request. See [Providers](/providers).

### Why does a cheaper route not win?

Ranking uses time-adjusted output: each minute of ETA beyond the first costs 1 bp, up to 50 bps. A marginally better but much slower route can lose to a near-instant one. Quotes within 0.1% of the best count as a tie, and the one that supports LayerHop goes first. All quotes are returned, so you can still offer the alternative. See [Providers & ranking](/concepts/providers-and-ranking).

## Fees

### How much does LayerHop charge?

0.10% for API and SDK integrations (channel `api`), 0.15% in the web app and widget, and 0.45% in the Telegram bot. The fee actually applied is on every quote as `fees.ourFeeBps`. See [Fees & channels](/concepts/fees-and-channels).

### Can I earn a fee on swaps from my app?

Yes. Registered partners add their own fee on top of LayerHop's, selected with `integrator=<id>` or a partner API key. The two together are capped at 150 bps by default. Apply in the [dashboard](https://dashboard.layerhop.com). See [Earn fees as a partner](/guides/partner-fees).

## API

### Do I need an API key?

No for trying the API: anonymous requests work, limited per IP. Yes for production: a key from the [dashboard](https://dashboard.layerhop.com) gives you your own rate limit, usage and request logs, order history and webhooks. Send it as `x-api-key`. See [Dashboard & API keys](/guides/dashboard-and-api-keys).

### What are the rate limits?

Without a key: 60 requests per minute per IP, plus a separate 120 per minute for token searches (`GET /v1/tokens`). With a key: 120 requests per minute by default, adjustable per key on request. Over the limit, the API answers `429` [`RATE_LIMITED`](/errors/RATE_LIMITED) with a `retry-after` header.

### Why are amounts strings?

Token amounts exceed the safe range of JavaScript numbers (1 ETH is `1000000000000000000` wei). Every amount in the API is an **integer string in base units**. Convert with the token's `decimals`: 100 USDC is `"100000000"`. Use `BigInt` for math.

### What is chain id 7565164?

Solana has no EVM-style chain id, so LayerHop uses `7565164` as Solana's id everywhere. You can pass the slug `solana` instead. See [Supported chains & tokens](/chains).

### Why did I get QUOTE_EXPIRED?

Quotes live 30 to 60 seconds, set by the provider. Build the transaction right after the user confirms, and re-quote on a timer while they decide. See [Error handling](/guides/error-handling).

### Can I check a transaction before the user signs?

Yes. `POST /v1/simulate` dry-runs the transaction for a quote and reports `ok`, a gas or compute estimate, and whether an approval is needed. See [Simulation](/concepts/simulation).

## Orders and webhooks

### Why is the status always "unknown" for my swap?

`GET /v1/orders/{provider}/{id}` returns `unknown` for same-chain providers (Jupiter, 0x, KyberSwap), because the swap settles inside one transaction. Confirm it on chain, or report it with `POST /v1/orders/{quoteId}/submitted` and LayerHop's tracker will mark it `filled` or `failed`. For cross-chain providers, `unknown` right after sending usually means "not indexed yet". See [Order tracking](/concepts/order-tracking).

### Can LayerHop notify my server when an order fills?

Yes. Add a webhook endpoint in the dashboard. LayerHop sends `order.submitted`, `order.filled`, `order.refunded`, `order.failed` and `order.dropped` for orders created with your API keys, signed with HMAC-SHA256 in the `LayerHop-Signature` header and retried for up to 24 hours. See [Webhooks](/guides/webhooks).

### Can I swap from Solana with Relay?

No. Relay is used for EVM-source routes only. Solana → EVM is served by deBridge and LI.FI.

## SDKs and tools

### Are the SDKs on npm, PyPI and crates.io?

Yes. `@layerhop/sdk`, `@layerhop/react`, `@layerhop/widget`, `@layerhop/cli` and `@layerhop/mcp` are on npm, `layerhop` is on PyPI and crates.io, and the Go module is `github.com/layerhop/layerhop-go`. See the [SDK reference](/sdk).

### Is there an MCP server for AI agents?

Yes, at `https://mcp.layerhop.com/mcp` (Streamable HTTP), or run `@layerhop/mcp` locally over stdio. It can quote, build and simulate transactions, report broadcasts, track orders and create swap links. It never holds keys; the user signs. See [AI agents & MCP](/guides/ai-agents).

### Can I use these docs with an AI assistant?

Yes. [`/llms.txt`](/llms.txt) lists every page with a one-line description, and [`/llms-full.txt`](/llms-full.txt) contains the whole site as Markdown. Every page also has **Copy page as Markdown**.

## Development

### Is there a testnet?

Not yet. The providers LayerHop aggregates quote mainnet only. For development, run the API locally with `LAYERHOP_ENABLE_MOCK=1` to get a deterministic `mock` provider, and never broadcast its dummy transactions.

### How do I run the API myself?

You don't need to: the hosted API is at `https://api.layerhop.com/v1`. For local development from the LayerHop source:

```bash
pnpm install
cp .env.example .env
pnpm --filter @layerhop/api dev   # http://localhost:8787/v1
```

Useful variables: `PORT`, `CORS_ORIGINS`, `PROVIDERS` (e.g. `relay,debridge`), `PROVIDER_TIMEOUT_MS`, `LAYERHOP_ENABLE_MOCK`, the `FEE_BPS_*` channel fees, and provider keys (`ZEROX_API_KEY` is needed for 0x). Accounts, keys, logs and webhooks also need `DATABASE_URL` and `SESSION_SECRET`.

### Where do I report a problem?

Email dev@layerhop.com with the `requestId` from the error body (or the `x-request-id` header), the endpoint, and the `quoteId` or transaction hash.
