Skip to main content

Chains

The Mina SDK provides comprehensive chain discovery to identify which networks can bridge to HyperEVM.

Overview

Mina supports bridging from 40+ EVM-compatible chains to HyperEVM (chain ID 999). The SDK provides methods to discover available source chains, check route availability, and retrieve chain metadata.

Chain Methods

getChains()

Fetches all supported source chains that can bridge to HyperEVM.

getDestinationChains()

Returns available destination chains. Currently, HyperEVM is the only supported destination.

getChainById(id)

Retrieves a specific chain by its chain ID.

Response Types

ChainsResponse

The response from getChains() includes metadata about data freshness:

Chain

Each chain object contains:

Supported Source Chains

The SDK supports bridging from 40+ EVM-compatible chains, including:
The complete list of supported chains is fetched dynamically from the LI.FI API. Use getChains() to get the current list.

Destination: HyperEVM

HyperEVM (chain ID 999) is the primary destination chain for Mina bridges. It’s the EVM-compatible execution environment on Hyperliquid.

Caching Behavior

Chain data is cached for 30 minutes to minimize API calls:
  • Fresh requests return data directly from the API
  • Subsequent requests within 30 minutes return cached data
  • If the API fails, stale cache may be returned with isStale: true

Error Handling

The SDK throws typed errors when chain fetching fails:

Example: Chain Selector

A common pattern is building a chain selector for your UI:

Next Steps

Tokens

Discover bridgeable tokens on each chain

Quotes

Get bridge quotes for your transfers