Skip to main content

multichain

This module exports chain guards used by the SDK's multichain funding logic.

Exports

  • isSettlementChain(chainId) — narrows a chain ID to SettlementChainId
  • isSourceChain(chainId, settlementChainId) — checks whether a source chain is valid for a settlement chain
  • isSourceChainForAnySettlementChain(chainId) — checks whether a chain is a valid source chain anywhere in the SDK
import { isSettlementChain, isSourceChainForAnySettlementChain } from "@gmx-io/sdk/configs/multichain";