Skip to main content

Interface: GalaConnectConfig

GalaChain core SDK 1.0.0-rc.8


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

Interface: GalaConnectConfig

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

Configuration for GalaConnect client

Properties​

baseUrl?​

optional baseUrl?: string

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

GalaConnect API base URL


enableRetry?​

optional enableRetry?: boolean

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

Enable automatic retry for transient failures (default: true)

When enabled, requests that fail due to network errors or server errors (5xx, 429) will be automatically retried with exponential backoff.


galachainBaseUrl?​

optional galachainBaseUrl?: string

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

GalaChain API base URL


httpRequestor?​

optional httpRequestor?: HttpRequestor

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

Sends the HTTP requests (default: the global fetch)


maxRetries?​

optional maxRetries?: number

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

Maximum number of retry attempts (default: 3)

Only used when enableRetry is true.


onRetry?​

optional onRetry?: (error, attempt, delayMs) => void

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

Callback invoked before each retry attempt.

Useful for logging or monitoring retry behavior.

Parameters​

error​

unknown

The error that triggered the retry

attempt​

number

Current attempt number (1-based)

delayMs​

number

Delay before next attempt in milliseconds

Returns​

void


requestsPerSecond?​

optional requestsPerSecond?: number

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

Requests per second (rate limiting)


requestTimeoutMs?​

optional requestTimeoutMs?: number

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

How long one request may take, in milliseconds (default 30 000; Infinity for no limit). A read that runs out is REQUEST_TIMEOUT, a write BRIDGE_WRITE_OUTCOME_UNKNOWN.


retryInitialDelayMs?​

optional retryInitialDelayMs?: number

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

Initial delay in milliseconds before first retry (default: 1000)

Subsequent retries use exponential backoff (delay doubles each time).


walletAddress​

walletAddress: string

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

The wallet's GalaChain user reference: an Ethereum account (eth|..., 0x..., bare hex; sent as eth|<checksummed>) or a client| alias; '' for a client with no wallet.