Skip to main content

@morph-l2/sdkDocs


@morph-l2/sdk / getBridgeAdapters

Function: getBridgeAdapters()

getBridgeAdapters(l2ChainId, messenger, opts?): BridgeAdapters

Gets a series of bridge adapters for the given L2 chain ID.

Parameters

l2ChainId: number

Chain ID for the L2 network.

messenger: CrossChainMessenger

Cross chain messenger to connect to the bridge adapters

opts?

Additional options for connecting to the custom bridges.

opts.contracts?: DeepPartial<OEContractsLike>

opts.overrides?: BridgeAdapterData

Custom bridge adapters.

Returns

BridgeAdapters

An object containing all bridge adapters

Source

src/utils/contracts.ts:142