LayerHopdocs

Error codes

UNSUPPORTED_CHAIN

Unsupported chain: The chain id or slug is not in LayerHop's chain registry, or a provider does not serve it.

Open in ClaudeOpen in ChatGPT
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, dstChain or chain is not one of the supported chains — for example a testnet id, or a typo in the slug.
  • GET /v1/tokens was called without chain.

How to fix#

  • Use a slug or id from GET /v1/chains. Solana is solana or 7565164.
  • Testnets are not supported yet — see the FAQ.

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.