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
| Property | Type | Description |
|---|---|---|
amount | string | Amount to bridge |
recipientAddress? | string | Recipient GalaChain address (optional, defaults to SDK wallet) |
sourceChain | ExternalNetwork | Source chain |
sourcePrivateKey? | string | Private key for source chain wallet (overrides config) |
tokenId | TokenClassKeyInput | 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' } |
recipient address source chain external network private key token id class input fetch all bridgeable tokens by stringified additional