Interface: BridgeOutParams
GalaChain core SDK 1.0.0-rc.8 / bridge / BridgeOutParams
Interface: BridgeOutParams
Defined in: packages/gala-core-sdk/dist/bridge.d.ts:466
Parameters for bridging out (GalaChain -> External)
Example
Bridge GALA to Ethereum
const result = await sdk.bridgeOut({
tokenId: 'GALA|Unit|none|none',
amount: '100',
destinationChain: 'Ethereum',
recipientAddress: '0x1234...abcd',
});
Properties
amount
amount:
string
Defined in: packages/gala-core-sdk/dist/bridge.d.ts:475
Amount to bridge
destinationChain
destinationChain:
ExternalNetwork
Defined in: packages/gala-core-sdk/dist/bridge.d.ts:477
Destination chain
feeSlippageTolerance?
optionalfeeSlippageTolerance?:number
Defined in: packages/gala-core-sdk/dist/bridge.d.ts:481
Optional slippage tolerance for fee (0-1, e.g., 0.01 for 1%)
recipientAddress
recipientAddress:
string
Defined in: packages/gala-core-sdk/dist/bridge.d.ts:479
Recipient address on destination chain
tokenId
tokenId:
TokenClassKeyInput
Defined in: packages/gala-core-sdk/dist/bridge.d.ts:473
Token identifier - accepts pipe-delimited string or TokenClassKey object.
Get from fetchAllBridgeableTokensByNetwork() result's stringifiedTokenClassKey field,
or construct manually: { collection: 'GALA', category: 'Unit', type: 'none', additionalKey: 'none' }