LayerHop Discovery API
Public, read-only discovery data: the cross-chain price gap radar, the new chain radar and the unclaimed airdrop checker.
Public, read-only discovery data: the cross-chain price gap radar, the new chain radar and the unclaimed airdrop checker.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/layerhop-com:layerhop-com-discovery-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Layerhop Com Discovery API
version: 0.1.0
contact:
name: LayerHop
url: https://docs.layerhop.com
description: 'Operations tagged Discovery across 2 of this provider''s published API definitions: layerhop-com-openapi.yaml, openapi.yaml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.layerhop.com
description: Hosted API (production)
- url: http://localhost:8787
description: Local API (`pnpm --filter @layerhop/api dev`)
security:
- {}
- ApiKey: []
tags:
- name: Discovery
description: 'Public, read-only discovery data: the cross-chain price gap radar, the new chain radar and the
unclaimed airdrop checker.'
paths:
/v1/chains/new:
get:
tags:
- Discovery
operationId: getNewChains
summary: New chain radar
description: 'Public and read-only, cached for 5 minutes. Chains that recently joined LayerHop''s live chain
registry, and chains a route provider recently started routing (`newChain: false` with a `new`
provider), within the last 30 or 90 days. First-seen times come from LayerHop''s own record of
each provider''s live chain list, kept since `trackingSince`; chains already listed then never
count as new. Each entry has its gas token, route health (`null` until its first check), the
first time routes in and out worked and the route health changes in the window. Our own data
only, no external APIs.'
parameters:
- name: days
in: query
required: false
schema:
type: integer
enum:
- 30
- 90
default: 30
responses:
'200':
description: The radar, newest first.
headers:
x-request-id:
$ref: '#/components/headers/RequestId'
content:
application/json:
schema:
$ref: '#/components/schemas/NewChainsReport'
example:
days: 30
generatedAt: '2026-10-26T12:00:00.000Z'
trackingSince: '2026-10-26T09:00:00.000Z'
chains:
- chainId: 4663
slug: robinhood
name: Robinhood Chain
vm: evm
logoURI: https://example.com/robinhood.svg
nativeSymbol: ETH
destinationOnly: false
firstSeenAt: '2026-10-20T10:00:00.000Z'
newChain: true
providers:
- provider: relay
name: Relay
firstSeenAt: '2026-10-20T10:00:00.000Z'
new: true
routeHealth:
in: ok
out: ok
status: ok
checkedAt: '2026-10-26T11:10:00.000Z'
firstRoutes:
in: '2026-10-20T12:00:00.000Z'
out: '2026-10-20T12:00:00.000Z'
timeline:
- at: '2026-10-20T12:00:00.000Z'
direction: in
from: unknown
to: ok
'400':
$ref: '#/components/responses/BadRequest'
servers:
- url: https://api.layerhop.com
description: Hosted API (production)
- url: http://localhost:8787
description: Local API (`pnpm --filter @layerhop/api dev`)
/v1/price-gaps:
get:
tags:
- Discovery
operationId: getPriceGaps
summary: Cross-chain price gap radar
description: 'Public and read-only. The same token on several chains (LayerHop''s canonical multi-chain groups:
ETH/WETH, USDC, USDT, DAI, WBTC, cbBTC, plus a top set of multi-chain tokens found on the
provider token lists), its price on each chain (the most liquid DexScreener pool; pools under
`minLiquidityUsd` are left out), and the gap between the cheapest and the dearest chain, biggest
first. For the top `quotedGaps` gaps, `net` holds a real read-only LayerHop quote from the cheap
chain to the dear one per size in `sizesUsd`: `netGapPct` is what the quote delivers, valued at
the destination price, minus the size (our fee and the route''s costs included; selling on the
destination chain is not). Gaps above 25% are `suspect` (usually different tokens sharing a
symbol) and never quoted. Refreshed at most every 5 minutes, only when requested, within an
hourly quote budget (`quoteErrors` code `BUDGET` when it runs out). Not financial advice.'
responses:
'200':
description: The radar.
headers:
x-request-id:
$ref: '#/components/headers/RequestId'
content:
application/json:
schema:
$ref: '#/components/schemas/PriceGapReport'
example:
generatedAt: '2026-10-26T12:00:00.000Z'
refreshSeconds: 300
sizesUsd:
- 100
- 1000
minLiquidityUsd: 100000
quotedGaps: 3
chains:
- arbitrum
- base
- ethereum
- optimism
- solana
rows:
- group: USDC
gapPct: 0.18
suspect: false
cheap:
chainId: 7565164
slug: solana
chain: Solana
address: EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v
symbol: USDC
decimals: 6
priceUsd: 0.9997
liquidityUsd: 25000000
pool: 8sLb…
dear:
chainId: 10
slug: optimism
chain: OP Mainnet
address: '0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85'
symbol: USDC
decimals: 6
priceUsd: 1.0015
liquidityUsd: 4000000
pool: 0x…
prices: []
net:
- sizeUsd: 100
provider: relay
dstAmount: '99620000'
netGapPct: -0.23
estimatedSeconds: 20
- sizeUsd: 1000
provider: relay
dstAmount: '998100000'
netGapPct: -0.04
estimatedSeconds: 20
servers:
- url: https://api.layerhop.com
description: Hosted API (production)
- url: http://localhost:8787
description: Local API (`pnpm --filter @layerhop/api dev`)
/v1/claims/airdrops:
get:
tags:
- Discovery
operationId: listClaimAirdrops
summary: Airdrops the claims checker covers
description: 'The curated airdrops `GET /v1/claims` checks, with the claim contract read, the official claim
site (the only place to claim: look-alike sites are phishing), whether the window is still open
and what the check can and can''t tell.'
responses:
'200':
description: Covered airdrops.
content:
application/json:
schema:
type: object
required:
- airdrops
properties:
airdrops:
type: array
items:
$ref: '#/components/schemas/Airdrop'
servers:
- url: https://api.layerhop.com
description: Hosted API (production)
- url: http://localhost:8787
description: Local API (`pnpm --filter @layerhop/api dev`)
/v1/claims:
get:
tags:
- Discovery
operationId: checkClaims
summary: Check an address for unclaimed airdrops
description: 'Public and read-only: per covered airdrop (`GET /v1/claims/airdrops`), whether the address has
something to claim, already claimed or missed a closed window, read from the official claim
contract (`eth_call`) and the official public data where the contract alone can''t say. LayerHop
never builds claim transactions for third-party airdrops: claim on the official site. One
airdrop failing comes back as `state: unknown` with `error: true`; the others still answer.
Limited per IP and process-wide; results cached for 10 minutes.'
parameters:
- name: address
in: query
required: true
schema:
type: string
description: EVM address.
responses:
'200':
description: Results per airdrop.
headers:
x-request-id:
$ref: '#/components/headers/RequestId'
content:
application/json:
schema:
$ref: '#/components/schemas/ClaimsScan'
example:
address: '0x98ae0e5d4977fa1231d4b7afa97881bf7abbfcc4'
checkedAt: 1793047478
results:
- airdrop: uniswap
state: claimable
unclaimed:
- amount: '400000000000000000000'
symbol: UNI
decimals: 18
chainId: 1
token: '0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984'
claimed: []
- airdrop: linea
state: not_eligible
unclaimed: []
claimed: []
'400':
$ref: '#/components/responses/BadRequest'
'429':
$ref: '#/components/responses/TooManyRequests'
servers:
- url: https://api.layerhop.com
description: Hosted API (production)
- url: http://localhost:8787
description: Local API (`pnpm --filter @layerhop/api dev`)
components:
schemas:
PriceGapPrice:
type: object
required:
- chainId
- slug
- chain
- address
- symbol
- decimals
- priceUsd
- liquidityUsd
- pool
properties:
chainId:
type: integer
slug:
type: string
chain:
type: string
address:
type: string
symbol:
type: string
decimals:
type: integer
priceUsd:
type: number
liquidityUsd:
type: number
description: Liquidity of the pool the price comes from.
pool:
type:
- string
- 'null'
ClaimsScan:
type: object
required:
- address
- results
- checkedAt
properties:
address:
type: string
checkedAt:
type: integer
results:
type: array
items:
type: object
required:
- airdrop
- state
- unclaimed
- claimed
properties:
airdrop:
type: string
state:
type: string
enum:
- claimable
- claimed
- missed
- not_eligible
- unknown
unclaimed:
type: array
items:
$ref: '#/components/schemas/ClaimItem'
claimed:
type: array
items:
$ref: '#/components/schemas/ClaimItem'
note:
type: string
error:
type: boolean
RouteState:
type: string
enum:
- ok
- failing
- unknown
NewChainsReport:
type: object
required:
- days
- generatedAt
- trackingSince
- chains
properties:
days:
type: integer
enum:
- 30
- 90
generatedAt:
type: string
format: date-time
trackingSince:
type:
- string
- 'null'
format: date-time
chains:
type: array
items:
type: object
required:
- chainId
- slug
- name
- vm
- logoURI
- nativeSymbol
- destinationOnly
- firstSeenAt
- newChain
- providers
- routeHealth
- firstRoutes
- timeline
properties:
chainId:
type: integer
slug:
type: string
name:
type: string
vm:
type: string
enum:
- evm
- svm
logoURI:
type: string
nativeSymbol:
type: string
description: Gas token.
destinationOnly:
type: boolean
firstSeenAt:
type: string
format: date-time
newChain:
type: boolean
description: 'false: a chain we already had, with a new provider.'
providers:
type: array
items:
type: object
required:
- provider
- name
- firstSeenAt
- new
properties:
provider:
type: string
name:
type: string
firstSeenAt:
type: string
format: date-time
new:
type: boolean
routeHealth:
oneOf:
- type: 'null'
- type: object
required:
- in
- out
- status
properties:
in:
$ref: '#/components/schemas/RouteState'
out:
$ref: '#/components/schemas/RouteState'
status:
type: string
checkedAt:
type: string
format: date-time
firstRoutes:
type: object
required:
- in
- out
properties:
in:
type:
- string
- 'null'
format: date-time
out:
type:
- string
- 'null'
format: date-time
timeline:
type: array
items:
type: object
required:
- at
- direction
- from
- to
properties:
at:
type: string
format: date-time
direction:
type: string
enum:
- in
- out
from:
$ref: '#/components/schemas/RouteState'
to:
$ref: '#/components/schemas/RouteState'
ClaimItem:
type: object
required:
- amount
- symbol
- decimals
- chainId
- token
properties:
amount:
type: string
description: Base units.
symbol:
type: string
decimals:
type: integer
chainId:
type: integer
token:
type: string
PriceGapReport:
type: object
required:
- generatedAt
- refreshSeconds
- sizesUsd
- minLiquidityUsd
- quotedGaps
- rows
- chains
properties:
generatedAt:
type:
- string
- 'null'
format: date-time
refreshSeconds:
type: integer
sizesUsd:
type: array
items:
type: number
minLiquidityUsd:
type: number
quotedGaps:
type: integer
chains:
type: array
items:
type: string
rows:
type: array
items:
type: object
required:
- group
- prices
- cheap
- dear
- gapPct
- suspect
- net
properties:
group:
type: string
prices:
type: array
items:
$ref: '#/components/schemas/PriceGapPrice'
cheap:
$ref: '#/components/schemas/PriceGapPrice'
dear:
$ref: '#/components/schemas/PriceGapPrice'
gapPct:
type: number
suspect:
type: boolean
net:
description: Quotes cheap → dear per size; null when this gap was not quoted.
oneOf:
- type: 'null'
- type: array
items:
type: object
required:
- sizeUsd
- provider
- dstAmount
- netGapPct
- estimatedSeconds
properties:
sizeUsd:
type: number
provider:
type: string
dstAmount:
type: string
netGapPct:
type: number
estimatedSeconds:
type:
- integer
- 'null'
quoteErrors:
type: array
items:
type: object
required:
- sizeUsd
- code
properties:
sizeUsd:
type: number
code:
type: string
Error:
type: object
description: Every non-2xx response has this body.
required:
- error
properties:
error:
type: object
required:
- code
- message
- requestId
- docsUrl
properties:
code:
$ref: '#/components/schemas/ErrorCode'
message:
type: string
description: Human-readable detail. Do not parse it.
requestId:
type: string
format: uuid
description: Same value as the `x-request-id` header.
docsUrl:
type: string
format: uri
description: Error catalog page, `https://docs.layerhop.com/errors/{code}`.
details:
type: object
description: 'Extra structured data, only on some errors. `NO_ROUTE` (and `AMOUNT_TOO_SMALL` /
`AMOUNT_TOO_LARGE` decided from the providers'' answers) on a quote carry `errors`: why
each provider returned no quote, the same entries a successful response lists in `errors`.
`AMOUNT_TOO_SMALL` on a quote may also carry the route''s minimum (D-036): `minAmount`,
`minAmountUsd`, `minAmountApprox`. `NO_ROUTE` on a live quote (and `UNSUPPORTED_CHAIN`
into a route-restricted chain such as Blast) may carry `suggestions` (D-053).
'
properties:
errors:
type: array
items:
$ref: '#/components/schemas/ProviderError'
suggestions:
type: array
maxItems: 4
description: '`NO_ROUTE` / `UNSUPPORTED_CHAIN` on a live quote: alternatives that quoted, best first (D-053).'
items:
$ref: '#/components/schemas/RouteSuggestion'
minAmount:
type: string
pattern: ^\d+$
description: '`AMOUNT_TOO_SMALL`: smallest input known to quote on this route, base units of `srcToken`.'
minAmountUsd:
type: number
description: '`AMOUNT_TOO_SMALL`: `minAmount` in USD, when the token has a price.'
minAmountApprox:
type: boolean
description: '`AMOUNT_TOO_SMALL`: `true` when `minAmount` was found by probing larger amounts ($10 / $25 / $50), so the true minimum is at most this; `false` when a provider reported it.'
ErrorCode:
type: string
description: Stable error code. Each has a page at `https://docs.layerhop.com/errors/{code}`.
enum:
- INVALID_PARAMS
- UNSUPPORTED_CHAIN
- UNSUPPORTED_TOKEN
- AMOUNT_TOO_SMALL
- AMOUNT_TOO_LARGE
- CALLS_REVERTED
- LAUNCH_IMAGE_INVALID
- NO_ROUTE
- ROUTE_EXCLUDED
- QUOTE_NOT_FOUND
- QUOTE_EXPIRED
- ORDER_NOT_FOUND
- PROVIDER_ERROR
- PROVIDER_TIMEOUT
- RATE_LIMITED
- QUOTA_EXCEEDED
- UNAUTHORIZED
- FORBIDDEN
- ADDRESS_SANCTIONED
- NOT_FOUND
- CONFLICT
- GASLESS_PENDING
- GASLESS_FAILED
- MARKET_UNAVAILABLE
- LIMIT_ORDER_REJECTED
- INTERNAL
ProviderError:
type: object
description: A provider that failed while the request as a whole succeeded.
required:
- provider
- code
- message
properties:
provider:
$ref: '#/components/schemas/ProviderId'
code:
$ref: '#/components/schemas/ErrorCode'
message:
type: string
RouteSuggestion:
description: 'An alternative to a route that returned no quote (D-053). `dst_token`: same payment, another
destination token. `src_token`: same destination token, paid with another source token worth the
same. `via_hub`: two signed steps through `hub` (`steps[0]` then `steps[1]`, each its own quote,
order and signature); the top-level fields describe the whole trip.
'
allOf:
- $ref: '#/components/schemas/RouteLeg'
- type: object
required:
- kind
- message
properties:
kind:
type: string
enum:
- dst_token
- src_token
- via_hub
message:
type: string
description: Short text for a button, e.g. "Receive USDC on Ethereum instead".
symbol:
type: string
description: 'The token that changed: the new source or destination token, or the hub token.'
hub:
type: object
description: '`via_hub` only: the token between the two steps.'
required:
- chainId
- token
- symbol
- decimals
properties:
chainId:
type: integer
token:
type: string
symbol:
type: string
decimals:
type: integer
steps:
type: array
description: '`via_hub` only: the two legs in order.'
minItems: 2
maxItems: 2
items:
$ref: '#/components/schemas/RouteLeg'
ProviderId:
type: string
description: 'Liquidity provider. Loaded by default: `jupiter`, `relay`, `debridge`, `zerox`, `kyberswap`, `lifi`, `mayan`,
`blast-native` (Blast''s canonical bridge: ETH on Ethereum → ETH on Blast only, no LayerHop fee).
`across` (Across Protocol, cross-chain EVM ↔ EVM), `baltex` (Baltex exchanges and DEX swaps), `routefun`
(Route, same-chain), `bebop` (Bebop RFQ and Aggregation, same-chain), `near-intents` (NEAR Intents 1Click),
`thorchain` and `chainflip` (native BTC and other non-EVM routes) `layerhop-solver` (LayerHop''s own solver: USDC between Base,
Arbitrum and OP Mainnet, filled from our inventory) and `layerhop-router` (LayerHop''s own same-chain
router on Robinhood Chain and Berachain) are built but not loaded by default.
`odos` is shut down; `mock` exists only in local
development (`LAYERHOP_ENABLE_MOCK=1`). `sandbox` serves every request made with an `lh_test_` key.
`direct` is a plain token transfer, used by checkout when the payer already holds the settlement token.
'
enum:
- jupiter
- relay
- debridge
- mayan
- zerox
- kyberswap
- odos
- lifi
- blast-native
- across
- baltex
- routefun
- bebop
- near-intents
- thorchain
- chainflip
- layerhop-router
- layerhop-solver
- mock
- sandbox
- direct
Airdrop:
type: object
required:
- id
- name
- token
- chainId
- status
- deadline
- claimUrl
- contract
- coverage
properties:
id:
type: string
name:
type: string
token:
type: string
chainId:
type: integer
status:
type: string
enum:
- live
- ended
deadline:
type:
- string
- 'null'
format: date-time
claimUrl:
type: string
description: Official claim site.
contract:
type: string
coverage:
type: string
RouteLeg:
type: object
description: One quotable leg, in the same terms as a quote request. Amounts are base units.
required:
- srcChain
- srcToken
- amount
- dstChain
- dstToken
properties:
srcChain:
type: integer
description: Source chain id.
srcToken:
type: string
description: 'Source token address or mint (native coin: the zero address; SOL: the system program id).'
amount:
type: string
pattern: ^\d+$
description: Input in base units of `srcToken`.
dstChain:
type: integer
description: Destination chain id.
dstToken:
type: string
dstAmount:
type: string
pattern: ^\d+$
description: Estimated output in base units of `dstToken` (from the check quote; scaled when served from cache).
headers:
RequestId:
description: Unique id for this request. Quote it when you report a problem.
schema:
type: string
format: uuid
responses:
BadRequest:
description: 'Invalid request (`INVALID_PARAMS`, `UNSUPPORTED_CHAIN`, `UNSUPPORTED_TOKEN`,
`AMOUNT_TOO_SMALL`, `AMOUNT_TOO_LARGE`).
'
headers:
x-request-id:
$ref: '#/components/headers/RequestId'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
error:
code: INVALID_PARAMS
message: 'amount: amount must be an integer string in base units'
requestId: 0d5e1f6a-3b2c-4d1e-8f9a-7b6c5d4e3f21
docsUrl: https://docs.layerhop.com/errors/INVALID_PARAMS
TooManyRequests:
description: 'Over your rate limit (`RATE_LIMITED`): the key''s `rateLimitRpm`, or `ANON_RATE_LIMIT_RPM` per IP
without a key. Wait `retry-after` seconds.
'
headers:
x-request-id:
$ref: '#/components/headers/RequestId'
retry-after:
description: Seconds until a request will be accepted.
schema:
type: integer
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
error:
code: RATE_LIMITED
message: Rate limit of 120 requests/minute exceeded; retry in 1s
requestId: 0d5e1f6a-3b2c-4d1e-8f9a-7b6c5d4e3f21
docsUrl: https://docs.layerhop.com/errors/RATE_LIMITED
securitySchemes:
ApiKey:
type: apiKey
in: header
name: x-api-key
description: 'Optional. An `lh_live_…` key from the dashboard attributes requests and orders to your account
and raises your rate limit (per key, default 120 requests/minute; without a key the limit is
per IP). An invalid or revoked key is rejected with `UNAUTHORIZED`. If your account has an
active partner profile, the key selects your partner fee and allows `integratorFeeBps`.
An `lh_test_…` key switches every request to **test mode**: quotes come from the `sandbox`
provider (priced from live USD prices), built transactions are placeholders that move no funds
(`tx.sandbox: true`), and reported orders run a simulated lifecycle (pending, then filled in about
10 seconds) with webhooks sent to your test endpoints only. Amounts ending in `4001` refund,
`4002` fail and `4004` return `NO_ROUTE`. Test and live data never mix: a quote, order or
webhook of one mode is invisible to the other.
'
Session:
type: apiKey
in: cookie
name: lh_session
description: 'Dashboard session cookie set by `POST /v1/auth/verify` (HttpOnly, Secure, SameSite=Lax,
7 days). Auth and Dashboard routes only.
'
AdminBearer:
type: http
scheme: bearer
description: Operator `ADMIN_TOKEN`. Admin routes only.
AdminSession:
type: apiKey
in: cookie
name: lh_admin
description: Owner sign-in cookie set by `POST /v1/admin/login` (12 hours). Admin routes only.
x-refined-from:
- layerhop-com-openapi.yaml
- openapi.yaml