Interface: BridgeInParams
GalaChain core SDK 1.0.0-rc.8 / bridge / BridgeInParams
Interface: BridgeInParams
Defined in: packages/gala-core-sdk/dist/bridge.d.ts:500
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
amount
amount:
string
Defined in: packages/gala-core-sdk/dist/bridge.d.ts:509
Amount to bridge
recipientAddress?
optionalrecipientAddress?:string
Defined in: packages/gala-core-sdk/dist/bridge.d.ts:515
Recipient GalaChain address (optional, defaults to SDK wallet)
sourceChain
sourceChain:
ExternalNetwork
Defined in: packages/gala-core-sdk/dist/bridge.d.ts:511
Source chain
sourcePrivateKey?
optionalsourcePrivateKey?:string
Defined in: packages/gala-core-sdk/dist/bridge.d.ts:513
Private key for source chain wallet (overrides config)
tokenId
tokenId:
TokenClassKeyInput
Defined in: packages/gala-core-sdk/dist/bridge.d.ts:507
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' }