@somnia-chain/markets-sdk / chains / getBridgeRoute
Function: getBridgeRoute()
getBridgeRoute(
token,chainIdA,chainIdB):BridgeRoute|null
Defined in: packages/sdk/src/chains/bridge/registry.ts:350
The route carrying one token between two networks, in either order.
Bridging is not transitive — a chain must be a member of the token's route.
Details
token: Token symbol.chainIdA: One end of the lane.chainIdB: The other end.- Returns: The route, or
nullif that token doesn't connect those two networks.
Parameters
token
chainIdA
number
chainIdB
number
Returns
BridgeRoute | null