@somnia-chain/markets-sdk


@somnia-chain/markets-sdk / chains / getBridgeRoute

Function: getBridgeRoute()

getBridgeRoute(token, chainIdA, chainIdB): BridgeRoute | null

Defined in: packages/sdk/src/chains/bridge/registry.ts:318

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.

Parameters

token

BridgeToken

Token symbol.

chainIdA

number

One end of the lane.

chainIdB

number

The other end.

Returns

BridgeRoute | null

The route, or null if that token doesn't connect those two networks.