Telegram bot
Quote, build and track LayerHop swaps from Telegram with @layerhop_bot — the LayerHop Mini App, price alerts, rug, unlock, move and cross-chain gap alerts, followed-wallet and dev-sell alerts, launch reminders, deposit addresses, invite links, the non-custodial deep-link flow, fees and safety.
@layerhop_bot is LayerHop's non-custodial Telegram bot: it quotes swaps and bridges through the LayerHop API, then gives you a link to finish the swap in your own wallet on layerhop.com/swap. The bot never creates wallets, never holds funds and never asks for a private key or seed phrase.
How does a swap through the bot work?#
- You ask for a quote with
/quoteor build one step by step with/swap. - The bot shows the best route, up to three alternatives, the minimum received, the estimated time and the LayerHop fee.
- You tap Swap in your wallet ↗. It opens a deep link such as
https://layerhop.com/swap?srcChain=base&srcToken=USDC&dstChain=solana&dstToken=SOL&amount=100&ref=bot, with everything prefilled. - You connect your wallet on layerhop.com, review the live quote and sign. Then follow the order with
/track.
Which commands are there?#
| Command | What it does |
|---|---|
/start, /help |
How LayerHop works, the non-custodial promise and safety tips |
/quote <amount> <token> <chain> to <token> <chain> |
Indicative quote with the best route and alternatives. Buttons: Swap in your wallet ↗ and Refresh. → and -> work in place of to. |
/swap |
Step-by-step builder with buttons: source chain, token, destination chain, token, then type the amount |
/status <provider> <txhash> |
One-off order status with an explorer link |
/track <provider> <txhash> |
Follows the order until it is final (up to 30 minutes), editing one message on each change. Has a Stop button. Up to 3 tracked orders per chat. |
/alert <token> > <usd> / /alert <token> < <usd> |
Price alert, e.g. /alert SOL > 200. Fires once with a one-tap swap link, then offers Re-arm. Add on <chain> for a token on a specific chain. |
/alerts, /alert del <n> |
List your alerts / remove alert number n |
/follow <Solana wallet> [name] |
Tell me when that wallet buys or sells a token. Up to 10 wallets per person. |
/following, /follow del <n> |
List the wallets you follow / stop following number n |
/devalerts, /devalerts del <n> |
List your dev-sell alerts and launch reminders / remove number n |
/app |
Open the LayerHop app inside Telegram (Mini App) |
/receive <token> on <chain> to [<token>] <chain> |
A deposit address that converts what you send, e.g. /receive USDC on base to solana |
/addresses |
Your deposit addresses with their deposit counts |
/wallet |
Show, set (/wallet <address>, /wallet refund <address>) or clear (/wallet clear) the addresses /receive uses |
/invite |
Your personal invite link and how many people joined with it |
/partner <partnerId> |
Link your LayerHop partner id so you earn partner fees on swaps by people you invite (/partner off unlinks) |
/cancel |
Stop a pending /receive or /swap |
/chains |
Supported chains and their aliases |
/tokens <chain> |
Tokens on a chain with addresses and decimals |
Example:
/quote 100 USDC base to SOL solana
/quote 0.5 eth arb -> usdc base
/track relay 0x3f1e…4d3e2f
/alert ETH < 3000
/receive USDT on bsc to SOL solana/alert, /follow, /following, /devalerts, /receive, /addresses, /wallet, /invite and /partner work only in a private chat with the bot.
Can I use the LayerHop app inside Telegram?#
Yes. /app and the 🚀 Open LayerHop button under /start open app.layerhop.com as a Telegram Mini App: Discover, token pages, charts, swaps and alerts, in Telegram's colors, with Telegram's back button and full-height view.
- You connect your own wallet with WalletConnect (the wallet app opens, you approve, you come back to Telegram) and sign every swap there. The Mini App never asks for a private key or seed phrase and never creates a wallet for you.
- Telegram alerts you set from inside the Mini App open the bot chat directly.
- Outside Telegram nothing changes: the Telegram script loads only when Telegram opened the page.
How do price alerts work?#
/alert SOL > 200 watches the USD price of SOL (from LayerHop's GET /v1/prices) and messages you the first time it reaches $200 or more. < alerts fire at or below the target. above, below, >= and <= work too, and a leading $ is fine.
- A bare symbol is priced on its home chain (ETH on Ethereum, SOL on Solana, BNB on BNB Chain, POL on Polygon). Use
/alert USDC on base < 0.99for a specific chain. - Prices are checked about once a minute. Each alert fires once and is then switched off; the message has a Re-arm button that turns it back on (available for 7 days).
- The alert message has a one-tap swap link on the same chain: Sell SOL for USDC when the price went up, Buy ETH with USDC when it went down. It opens layerhop.com with the swap prefilled (
ref=bot), and you review the live quote and sign in your own wallet. - Up to 10 active alerts per person.
How do rug, unlock, move and gap alerts work?#
These alerts stay on after they fire (with cooldowns), and every message has 🔕 Mute 24h and 🗑 Remove buttons. A token is a symbol (SOL, USDC) or an address; a 0x address needs on <chain>.
| Command | Fires when |
|---|---|
/alert <token> rug [50%] |
the token's main pool loses 50% (20–95%) of its liquidity within an hour, or its risk check turns danger |
/alert <token> unlock [1%] [$1m] [3d] |
a vesting unlock of at least 1% of circulating supply or $1M is due within 3 days (1–30) |
/alert <token> move 10% [1h|24h] [up|down] |
the price moved at least 10% within the hour (or 24 hours) |
/alert <token> gap [1%] |
the same token is at least 1% cheaper on another chain (USDC, USDT, ETH / WETH, DAI, WBTC, cbBTC) |
- Rug: the bot follows the token's main pool (the most liquid one when you set the alert) by its pair address, about once a minute, and the risk report every 15 minutes. A pool that is pulled stays visible that way, even when another pool becomes the biggest. The message has a one-tap Sell link. From a token page in the app, the alert also watches the creator wallet when it is known (see dev-sell alerts).
- Unlocks: from DefiLlama's token emissions data (circulating supply and price included). Each unlock is announced once. Coverage is limited to tokens DefiLlama tracks by contract address (a few dozen with upcoming unlocks at any time); for others the bot says it has no schedule. DefiLlama has no Berachain tokens by address, so Berachain token pages in the app don't offer unlock alerts.
- Move: DexScreener's 1h / 24h change of the main pool. The same direction repeats at most once an hour (every 12 hours for 24h moves).
- Gap: LayerHop's own prices (
GET /v1/prices) for the token on every chain we list it on. The message names the cheap and the expensive chain and has a Swap now link on app.layerhop.com that swaps the token on the expensive chain into the same token on the cheap one (you compare the live quote, fees included, before signing). It fires again once the gap has closed to half the threshold. /alertslists them after your price alerts (with "muted until" when muted);/alert del <n>removes one,/alert mute <n> [1h|24h|7d|off]mutes or unmutes one.- Limits: 20 of these per person, at most 20 messages per chat per hour across all alerts (the last one says it is pausing).
How do rate, rebalance and routine reminders work?#
These come from the LayerHop app (they have no /alert command) and are reminders only: nothing ever trades.
- Rate alert (from app.layerhop.com/earn): tells you when the best other USDC / USDT vault in
GET /v1/yieldspays at least your threshold (APY points, default 1) more than yours, at most once a day, with a link to compare and move. - Rebalance reminder (from app.layerhop.com/rebalance): reads your wallets' balances every 6 hours and tells you when a target asset's share is off its target weight by your threshold (default 5 points), with a link that opens the rebalancer with your targets.
- Routine reminder (from app.layerhop.com/routines): sends your routine's title on its schedule (daily, weekly or monthly, UTC) with a link that works out the amount from your balance when you open it; you review and sign the swap.
Links only ever point to layerhop.com or app.layerhop.com. Per person: 10 rate alerts, 3 rebalance reminders and 10 routine reminders, within the usual 20.
How do I get alerts from the LayerHop app on Telegram?#
Alerts you set in the app (app.layerhop.com) only fire while the app is open. To get them when it is closed, use Also alert me on Telegram in a token's price alert (the bell on a token page), or Alert me on Telegram when it swaps on a Solana wallet page (also in Watchlist under followed wallets).
- The app parks the alert for 15 minutes with
POST /v1/alerts/draftsand openshttps://t.me/layerhop_bot?start=d_<id>. - In Telegram, tap Start. The bot shows the alert, for example "Alert you when BONK on Solana goes above $0.00003?", with the token's address and current price.
- Tap Confirm. A price alert becomes a normal bot alert (it counts toward your 10,
/alertslists it); a wallet joins your followed wallets (/following).
A stop-loss from an exit plan in the app arrives as "🛑 Stop-loss: Alert you when … falls below …?". When it fires, its one-tap link sells the token for a stablecoin (for example Sell BONK for USDC), not the usual buy for a falling price. You still review the quote and sign in your own wallet.
The shield button on a token page (Alerts that stay on) creates rug, big-move, unlock and (for tokens listed on several chains) gap alerts the same way.
Price alerts from the app are tied to the token's address (mint or contract), not its symbol, so a token that shares a symbol with another is never confused. When one fires, the message has the usual one-tap swap link and a link to the token's page on app.layerhop.com. Price alerts work for Solana, Robinhood Chain and Berachain tokens that LayerHop's GET /v1/prices can price; an alert on a token without a price waits until one is available.
How do followed-wallet alerts work?#
/follow <Solana wallet> (or Alert me on Telegram when it swaps in the app) makes the bot check that wallet about once a minute and message you when it buys or sells a token, for example "Followed wallet 9WzD…AWWM bought 1,234.5 BONK for 0.52 SOL on Solana", with links to the transaction and to the token's page.
- A swap is read from the wallet's own balance changes in the transaction: one token out and one token in (SOL changes under 0.005 SOL, such as fees and token-account rent, are ignored). Transfers, airdrops and failed transactions are not reported.
- At most 10 wallets per person (and 1,000 across the bot, as a memory bound). The bot paces its Solana RPC calls (at most about 5 per second) and spreads the wallets over each minute, so with many followed wallets a check can take longer than a minute. After a restart the bot starts from the wallet's latest transaction, so it never reports old swaps.
- Solana only for now. Robinhood Chain has no cheap way to watch a wallet yet, so the bot says so instead of following one.
- Alerts are information, not advice: check the token's page (risk, holders) before you trade. The bot never trades for you.
How do dev-sell alerts work?#
On any token page in the app, the Alert me if the dev sells button (next to the price-alert bell) finds the token's creator wallet and asks the bot to watch it:
- The creator wallet comes from LayerHop's own launch records for tokens created on LayerHop, otherwise from the token's risk report (RugCheck on Solana, GoPlus on Robinhood Chain and Berachain). The app shows the wallet and where it came from before you continue.
- The app parks a
dev_selldraft withPOST /v1/alerts/drafts({kind: "dev_sell", chain, token, creator}) and opens the bot; tap Start, then Confirm. - From then on, about once a minute, the bot checks the creator wallet and messages you when the token leaves it, for example "🚨 Dev sold 40,000,000 HOP (40% of their balance) for 12.5 SOL on Solana", with the transaction and a link to the token page.
What counts as what:
- Solana: the creator's token balance goes down and SOL, USDC or USDT comes back in the same transaction → sold. A decrease of at least 1% of their balance with nothing back → moved (a transfer, often to another wallet that sells next).
- Robinhood Chain, Berachain, Base and Arbitrum: every token transfer out of the creator wallet. To a known exchange contract (the Uniswap v4 pool manager that LayerHop's EVM launches trade in, Uniswap routers, Permit2, aggregators) → sold; to the zero address → burned; to another contract → moved to a contract (a pool, a locker or a router: possibly a sale); otherwise moved to the wallet …. The message says how much the creator still holds. On Berachain the bot knows Permit2, 0x and KyberSwap as exchange contracts; a sale straight through a Kodiak or BEX router shows as moved to a contract.
Limits: 10 dev-sell alerts per person, at most 6 messages per alert per hour (the sixth says it is pausing), and dev wallets are checked about once a minute. A creator can also sell from other wallets, and a risk report's creator can be wrong, so treat these alerts as one signal among others. /devalerts lists them; /devalerts del <n> removes one.
How do launch reminders work?#
A token scheduled on LayerHop Launch can offer Remind me on Telegram. The bot then sends one message when trading opens, with a link to the token page. Reminders count toward /devalerts (up to 10 per person); a launch more than 30 days away can't be reminded.
How do deposit addresses work in the bot?#
/receive USDC on base to solana gives you an address on Base. Every time you (or an exchange withdrawal) send USDC on Base to it, the deposit is converted and delivered as USDC on Solana to your wallet. Name a different destination token with /receive USDC on base to SOL solana. Without one, the bot uses the same token if the destination chain lists it, otherwise the chain's native coin.
- The first time, the bot asks for your destination wallet and a refund address, then remembers them (see
/wallet). Only ever send public addresses — never a private key or seed phrase. - It creates a reusable deposit address and replies with the address on its own line (easy to copy, or to paste into a QR generator or an exchange's withdrawal form), an estimate, the fee and these warnings:
- send only that token on that chain; anything else may be lost for good;
- send at least $1 worth per deposit;
- if a deposit can't be converted it is refunded to your refund address on the source chain, so use a wallet you control, not an exchange deposit address.
- The bot checks your addresses every couple of minutes and messages you when a deposit is detected and when it is converted, refunded or failed.
Asking for the same route again returns your existing address instead of creating a new one. /addresses lists yours with their deposit counts (up to 10 per person).
The address is created by the liquidity provider (Relay); LayerHop and the bot never hold funds. Deposit addresses are priced at the API channel fee (0.10%), not the bot's 0.45%, plus the inviter's partner fee if you joined through a partner's invite link. The fee is shown when the address is created.
How do invite links work?#
/invite gives you a personal link such as https://t.me/layerhop_bot?start=ref_Ab3dE9xY. Anyone who opens the bot through it for the first time is linked to you; the first invite link a person uses wins, and you can't invite yourself.
If you have a LayerHop partner profile, link it with /partner <partnerId> (your partner id: lowercase letters, digits and dashes, up to 32 characters). From then on, swap links the bot gives the people you invited carry integrator=<partnerId>, so your partner fee applies on their swaps. It is included in the fees shown to them on layerhop.com before they sign (and named in the fee details), and it is added to the deposit addresses they create. Unknown or unapproved partner ids are ignored by LayerHop.
How do I write chains, tokens and providers?#
| Input | Accepted forms |
|---|---|
| Amount | Human units, . as the decimal separator (100, 0.5) |
| Chain | Slug, name or numeric id of any supported chain; aliases such as eth, arb, op, bnb/bsc, matic/pol, sol |
| Token | A symbol from the built-in token list (case-insensitive) or an exact address / mint. MATIC on Polygon means POL. |
Provider (/status, /track) |
relay, debridge, lifi, jupiter, zerox, kyberswap, mayan, plus aliases 0x, li.fi, jup, dln |
What does the bot charge?#
Swaps that start from the bot use the bot fee channel: 0.45% of the input amount, shown on every quote before you sign. The deep link carries ref=bot, which tells the swap app to use that channel. If you joined through a partner's invite link, the link also carries integrator=<partnerId> and that partner's fee is added on top (included in the fees shown, and named in the fee details). Deposit addresses from /receive use the API channel fee (0.10%) instead. See Fees & channels.
Is the bot safe to use?#
- It is non-custodial: you sign every transaction in your own wallet on layerhop.com. The bot cannot move funds.
- It never asks for a seed phrase or private key. Anyone who does is a scammer. For
/receiveit asks only for public wallet addresses. - What the bot stores: your alerts, the public wallets you follow, the creator wallets and tokens of your dev-sell alerts, your launch reminders, the public addresses you saved with
/wallet, the ids of your deposit addresses, your invite code, who invited you and your linked partner id./wallet clear,/alert del,/follow del,/devalerts deland/partner offremove them. - LayerHop staff never message you first.
- Quotes in Telegram are indicative. The price you sign is the live quote on layerhop.com; use Refresh for an updated quote in chat.
Can I link to the bot from my app?#
Yes: https://t.me/layerhop_bot. To send users straight to a prefilled swap instead, use a deep link or embed the widget.
Last updated