@somnia-chain/markets-sdk


@somnia-chain/markets-sdk / index / ExchangeBridgeParams

Interface: ExchangeBridgeParams

Defined in: packages/sdk/src/unified/bridge.ts:22

Parameters for ExchangeBridge.plan and ExchangeBridge.transfer.

Properties

token

token: BridgeToken

Defined in: packages/sdk/src/unified/bridge.ts:24

Token to bridge.


from

from: number

Defined in: packages/sdk/src/unified/bridge.ts:26

Chain id to send FROM — must be one of the exchange's chains.


to

to: number

Defined in: packages/sdk/src/unified/bridge.ts:28

Chain id to send TO — must be one of the exchange's chains.


amount

amount: bigint

Defined in: packages/sdk/src/unified/bridge.ts:30

Amount in base units of the ORIGIN side's decimals.


recipient?

optional recipient?: `0x${string}`

Defined in: packages/sdk/src/unified/bridge.ts:32

Who receives on the destination. Defaults to the exchange's account (the same address on every chain).


approveAmount?

optional approveAmount?: bigint

Defined in: packages/sdk/src/unified/bridge.ts:34

Approve more than amount on a collateral route, or 0n to skip the approval.