Skip to main content

bridge/interfaces/BridgeOutParams.md

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​

PropertyTypeDescription
amountstringAmount to bridge
destinationChainExternalNetworkDestination chain
feeSlippageTolerance?numberOptional slippage tolerance for fee (0-1, e.g., 0.01 for 1%)
recipientAddressstringRecipient address on destination chain
tokenIdTokenClassKeyInputToken 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' }