Exports
Functions
getChains(cache?)
Fetch all supported source chains for bridging.
Returns:
ChainsResponse
Throws:
ChainFetchError if API fails and no cache available.
Example:
getDestinationChains()
Get destination chains (currently only HyperEVM).getChainsByRoutes(toChainId?, cache?)
Get chains that have valid bridge routes to a specific destination.
Example:
getChainById(chainId, cache?)
Get a specific chain by its ID.
Example:
invalidateChainCache(cache?)
Manually invalidate the chain cache.createChainCache()
Factory function to create a new cache instance.Types
ChainsResponse
Chain
ChainFetchError
Constants
HYPEREVM_CHAIN
Pre-defined HyperEVM chain data.ChainCache Class
TheChainCache class manages caching for chain data with a 30-minute TTL.
