UNSUPPORTED_CHAIN
Unsupported chain: The chain id or slug is not in LayerHop's chain registry, no provider serves it any more, or the route into it is restricted.
| HTTP status | Retry |
|---|---|
400 |
no |
Where it comes from: GET /v1/tokens, GET /v1/quote; also mapped from provider errors (for example Relay CHAIN_DISABLED).
Causes#
srcChain,dstChainorchainis not one of the supported chains — for example a testnet id, or a typo in the slug.GET /v1/tokenswas called withoutchain.- Every provider stopped routing the chain (it is no longer in
GET /v1/chains). srcChainis a destination-only chain (Hyperliquid, Blast).- The destination has an
onlyRouteand the request doesn't match it: Blast is only reachable from ETH on Ethereum (error.details.onlyRoute).
How to fix#
- Use a slug or id from GET /v1/chains. Solana is
solanaor7565164. - Testnets are not supported yet — see the FAQ.
- For a route-restricted destination, quote its
onlyRouteinstead (for Blast:srcChain=ethereum&srcToken=ETH&dstToken=ETH), or followerror.details.suggestions: in live mode it carries onevia_hubsuggestion in two signed steps (to ETH on Ethereum, then the canonical deposit).
Example response#
JSON
{
"error": {
"code": "UNSUPPORTED_CHAIN",
"message": "Unsupported chain: avalanche",
"requestId": "0d5e1f6a-3b2c-4d1e-8f9a-7b6c5d4e3f21",
"docsUrl": "https://docs.layerhop.com/errors/UNSUPPORTED_CHAIN"
}
}See Error handling & retries for a retry strategy, and the error catalog for every code.
Last updated