@somnia-chain/markets-sdk / index / ExchangeBridgeParams
Interface: ExchangeBridgeParams
Defined in: packages/sdk/src/unified/bridge.ts:39
Parameters for ExchangeBridge.plan and ExchangeBridge.transfer.
Properties
token
token:
BridgeToken
Defined in: packages/sdk/src/unified/bridge.ts:41
Token to bridge.
from
from:
number
Defined in: packages/sdk/src/unified/bridge.ts:43
Chain id to send FROM — must be one of the exchange's chains.
to
to:
number
Defined in: packages/sdk/src/unified/bridge.ts:45
Chain id to send TO — must be one of the exchange's chains.
amount
amount:
bigint
Defined in: packages/sdk/src/unified/bridge.ts:47
Amount in base units of the ORIGIN side's decimals.
recipient?
optionalrecipient?:`0x${string}`
Defined in: packages/sdk/src/unified/bridge.ts:49
Who receives on the destination. Defaults to the exchange's account (the same address on every chain).
approveAmount?
optionalapproveAmount?:bigint
Defined in: packages/sdk/src/unified/bridge.ts:51
Approve more than amount on a collateral route, or 0n to skip the approval.