- Snapshot mode — call with no parameters to get the full matrix metadata and the union of reachable source chain IDs. Useful for populating chain selectors on page load.
- Lookup mode — pass both
fromChainandfromTokento check a specific pair.
Query parameters
Source chain ID (e.g.
1, 8453, 42161). Required for lookup mode.Source token contract address. Required for lookup mode.
Snapshot mode (no parameters)
Returns matrix metadata + reachable chain IDs:reachableChainIds to grey out unsupported chains in your chain selector.
Lookup mode (both parameters)
Returns whether a specific (chain, token) pair can reach PulseChain, and the intermediate routes:Response fields
| Field | Type | Description |
|---|---|---|
fromChain | number | Echoed input chain ID |
fromToken | string | Echoed input token address (lowercased) |
intermediates | string[] | null | Intermediate bridge tokens used (e.g. ["usdch"]). null while the matrix is still building. [] means definitively unreachable. |
state | "reachable" | "unreachable" | "loading" | Convenience derived from intermediates |
state === "loading", the matrix is rebuilding (cold start or scheduled refresh) — show a non-blocking “loading” hint rather than a hard “unsupported” badge. The check will resolve within a few seconds.
Errors
| HTTP | Code | Cause |
|---|---|---|
400 | INVALID_PARAMS | Only one of fromChain / fromToken was provided (must be both or neither) |
400 | INVALID_PARAMS | fromChain is not a valid chain identifier |