LayerHop
БесплатноБез исполняемых скриптовНе проверенQuote and prepare cross-chain token swaps via LayerHop.
от layerhop204 установки в других каталогахОб этом скилле
LayerHop: cross-chain swap quotes
LayerHop is a cross-chain swap API. One call compares routes from many bridges and aggregators across 70 chains (Ethereum, Base, Arbitrum, Optimism, BNB Chain, Polygon, Solana, Tron, Hyperliquid and more) and returns the best quote with every fee itemised.
This skill never moves funds. It only reads quotes and prepares data. LayerHop holds no keys and never signs. The user's own wallet signs every swap, after the user has seen the quote and said yes.
When to Use
- The user asks how much they'd get swapping or bridging a token from one chain to another.
- The user wants the cheapest or fastest route between two chains.
- The user wants a link to do the swap in their own wallet.
- The user wants to fund a Hyperliquid perps account or another chain from tokens they hold elsewhere.
Don't use it for price speculation, trading advice, or anything that needs the user's private key.
Prerequisites
curl(or any HTTP client). Base URL:https://api.layerhop.com.- Optional:
LAYERHOP_API_KEYsent as thex-api-keyheader. Without a key, requests are rate-limited per IP. - MCP alternative: if the agent supports MCP, connect
https://mcp.layerhop.com/mcpinstead (same rules, ready-made tools).
Quick Reference
| Step | Call |
|---|---|
| Chains | GET /v1/chains |
| Find a token | GET /v1/tokens?chain=base&q=USDC |
| Quote | GET /v1/quote?srcChain=…&srcToken=…&amount=…&dstChain=…&dstToken=…&sender=…&recipient=… |
| Unsigned transaction | POST /v1/orders with {"quoteId":"q_…"} |
| Order status | GET /v1/orders/{provider}/{sourceTxHash} |
| Swap link (user signs on layerhop.com) | https://layerhop.com/swap?srcChain=base&srcToken=USDC&dstChain=arbitrum&dstToken=USDC&amount=25 |
Chains are slugs (ethereum, base, arbitrum, solana, hyperliquid, …). Tokens are a symbol such as USDC
or a contract address. In the API, amount is in base units of the source token (USDC has 6 decimals, so
25000000 = 25 USDC). In a swap link, amount is human (25).
Procedure
- Collect the inputs: source chain and token, amount, destination chain and token, and the user's address
(
sender; alsorecipient, which must be on the destination chain's VM, for example a Solana address for Solana). If anything is missing, ask. Never guess an address. - Quote:
Readcurl -s "https://api.layerhop.com/v1/quote?srcChain=base&srcToken=USDC&amount=25000000&dstChain=arbitrum&dstToken=USDC&sender=0xUSER&recipient=0xUSER" \ ${LAYERHOP_API_KEY:+-H "x-api-key: $LAYERHOP_API_KEY"}best:provider,dstAmountanddstAmountMin(destination base units),estimatedSeconds,fees, andexpiresAt(quotes expire within about a minute).quoteslists the alternatives. - Show the user the quote in human units: what they send, what they receive at least (
dstAmountMin), the fees, and the time. Ask whether to proceed. Never continue without an explicit yes. - Hand over for signing, in one of two ways:
- Default: give a swap link (
https://layerhop.com/swap?..., human amount). The user reviews and signs in their own wallet on layerhop.com. - The user's own signer (only if the user runs a wallet tool they control):
POST /v1/orderswith thequoteId. The responsetxholdschainId,to,dataandvalue, plusapprovalif a token approval must come first. Pass these to the user's signer; this skill does not sign or broadcast.
- Default: give a swap link (
- Track: after the user's wallet broadcasts, check
GET /v1/orders/{provider}/{sourceTxHash}until the orderstateisfilled(orrefunded/failed), and report the outcome.
Pitfalls
- Never ask for or accept a private key or seed phrase. If the user offers one, refuse and tell them to keep it secret.
- Quotes expire. If
expiresAthas passed, quote again before building. - Decimals: USDC and USDT are 6 on most EVM chains, 18 on BNB Chain; ETH is 18; Hyperliquid perps USDC is 8.
NO_ROUTEerrors often carryerror.details.suggestions(another token or a hub chain), andAMOUNT_TOO_SMALLcarries the route's minimum. Pass these on to the user.- Hyperliquid is destination-only: quote
dstChain=hyperliquid&dstToken=USDC, with the user's EVM address as recipient. - Don't present a quote as guaranteed. The amount received can be lower, down to
dstAmountMin.
Verification
GET https://api.layerhop.com/v1/healthreturns 200.- A test quote for 10 USDC Base → Arbitrum returns
best.quoteIdand adstAmountclose to 10 USDC (~9.9…e6).
Docs: https://docs.layerhop.com · API reference: https://docs.layerhop.com/api-reference · MCP: https://docs.layerhop.com/guides/ai-agents
Установить LayerHop в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл LayerHop?
Quote and prepare cross-chain token swaps via LayerHop.
Как установить скилл LayerHop?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл LayerHop запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic