Skip to main content

bridge/interfaces/BridgeInParams.md

Parameters for bridging in (External -> GalaChain)

Example​

Bridge GALA from Ethereum to GalaChain

const result = await sdk.bridgeIn({
tokenId: 'GALA|Unit|none|none',
amount: '100',
sourceChain: 'Ethereum',
sourcePrivateKey: '0xabc...', // Ethereum wallet private key
});

Properties​

PropertyTypeDescription
amountstringAmount to bridge
recipientAddress?stringRecipient GalaChain address (optional, defaults to SDK wallet)
sourceChainExternalNetworkSource chain
sourcePrivateKey?stringPrivate key for source chain wallet (overrides config)
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' }