Skip to main content

Interface: ExternalChainBalance

GalaChain core SDK 1.0.0-rc.8


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

Interface: ExternalChainBalance

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

Balance for a single token on an external chain (Ethereum or Solana)

Represents either a native token (ETH/SOL) or a token contract (ERC-20/SPL).

Example​

// Native ETH balance
const ethBalance: ExternalChainBalance = {
symbol: 'ETH',
quantity: '1.500000000000000000',
decimals: 18,
contractAddress: null,
isNative: true,
};

// ERC-20 GALA balance
const galaBalance: ExternalChainBalance = {
symbol: 'GALA',
quantity: '1000.00000000',
decimals: 8,
contractAddress: '0x15D4c048F83bd7e37d49eA4C83a07267Ec4203dA',
isNative: false,
};

Properties​

contractAddress​

contractAddress: string | null

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

Contract address (ERC-20) or mint address (SPL), null for native tokens


decimals​

decimals: number

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

Token decimals


isNative​

isNative: boolean

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

Whether this is the native token (ETH/SOL)


quantity​

quantity: string

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

Balance as decimal string (e.g., "123.45678901")


symbol​

symbol: string

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

Token symbol (e.g., "GALA", "GWETH", "ETH", "SOL")