Skip to main content

Interface: BridgeServiceConfig

GalaChain core SDK 1.0.0-rc.8


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

Interface: BridgeServiceConfig

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

Extended bridge configuration with wallet keys.

Extends​

Properties​

bridgeableTokenService​

bridgeableTokenService: BridgeTokenLookup

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

Resolves a tokenId to the token bridgeable to a network (the BridgeableTokenService). Every method that takes a tokenId goes through it, so it is required: a missing lookup is refused at construction (INVALID_BRIDGE_OPTION), not at the first call.


environment?​

optional environment?: BridgeEnvironment

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

Environment - affects default URLs (stage: Sepolia and devnet, prod: mainnet). Default prod.


ethereumBridgeContract?​

optional ethereumBridgeContract?: string

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

Ethereum bridge contract address (optional, defaults to mainnet)

Inherited from​

BridgeConfig.ethereumBridgeContract


ethereumPrivateKey​

ethereumPrivateKey: string

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

Ethereum private key for signing (required for all operations)

Overrides​

BridgeConfig.ethereumPrivateKey


ethereumRpcUrl?​

optional ethereumRpcUrl?: string

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

Ethereum RPC URL (optional, defaults to public endpoint)

Inherited from​

BridgeConfig.ethereumRpcUrl


galaChainApiBaseUrl?​

optional galaChainApiBaseUrl?: string

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

GalaChain API base URL (optional, defaults to galaConnectBaseUrl)

Inherited from​

BridgeConfig.galaChainApiBaseUrl


galaChainWalletAddress​

galaChainWalletAddress: string

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

GalaChain wallet address (eth|..., 0x..., or a client| alias)


galaConnectBaseUrl?​

optional galaConnectBaseUrl?: string

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

GalaConnect (DEX API platform) base URL (default: the environment's dexApiBaseUrl)


httpRequestor?​

optional httpRequestor?: HttpRequestor

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

Sends the GalaConnect requests (default: the global fetch)


pollInterval?​

optional pollInterval?: number

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

Status polling interval in milliseconds

Inherited from​

BridgeConfig.pollInterval


pollTimeout?​

optional pollTimeout?: number

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

Status polling timeout in milliseconds

Inherited from​

BridgeConfig.pollTimeout


rateLimit?​

optional rateLimit?: number

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

Rate limit for API calls (requests per second)

Inherited from​

BridgeConfig.rateLimit


sleep?​

optional sleep?: BridgeSleep

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

How the strategies wait (a poll interval, the wait before an inbound registration)


solanaBridgeProgram?​

optional solanaBridgeProgram?: string

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

Solana bridge program ID (optional, defaults to mainnet)

Inherited from​

BridgeConfig.solanaBridgeProgram


solanaConnection?​

optional solanaConnection?: Connection

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

The Solana connection the Solana strategy uses (default: one to solanaRpcUrl)


solanaPrivateKey?​

optional solanaPrivateKey?: string

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

Solana private key (base58) for inbound bridges (optional)

Inherited from​

BridgeConfig.solanaPrivateKey


solanaRpcUrl?​

optional solanaRpcUrl?: string

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

Solana RPC URL (optional, defaults to public endpoint)

Inherited from​

BridgeConfig.solanaRpcUrl