Skip to main content

Variable: GALACHAIN\_CHANNELS

GalaChain core SDK 1.0.0-rc.8


GalaChain core SDK 1.0.0-rc.8 / bridge / GALACHAIN_CHANNELS

Variable: GALACHAIN_CHANNELS

const GALACHAIN_CHANNELS: object

Defined in: packages/gala-core-sdk/dist/bridge.d.ts:1309

Internal GalaChain Channel IDs (for wrap/unwrap operations)

Different from external CHAIN_IDS used for Ethereum/Solana bridges. These represent internal GalaChain channels for cross-channel token transfers.

Type Declaration​

ASSET​

readonly ASSET: 1

Asset channel - where wrapped tokens (GMUSIC, GWETH, GALA, etc.) live

MUSIC​

readonly MUSIC: 3

Music channel - where native MUSIC token lives (legacy)

Example​

// Wrap: MUSIC (music channel) → GMUSIC (asset channel)
destinationChainId: GALACHAIN_CHANNELS.ASSET

// Unwrap: GMUSIC (asset channel) → MUSIC (music channel)
destinationChainId: GALACHAIN_CHANNELS.MUSIC