Interface: GalaConnectConfig
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?
optionalbaseUrl?:string
Defined in: packages/gala-core-sdk/dist/bridge.d.ts:537
GalaConnect API base URL
enableRetry?
optionalenableRetry?: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?
optionalgalachainBaseUrl?:string
Defined in: packages/gala-core-sdk/dist/bridge.d.ts:539
GalaChain API base URL
httpRequestor?
optionalhttpRequestor?:HttpRequestor
Defined in: packages/gala-core-sdk/dist/bridge.d.ts:546
Sends the HTTP requests (default: the global fetch)
maxRetries?
optionalmaxRetries?: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?
optionalonRetry?: (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?
optionalrequestsPerSecond?:number
Defined in: packages/gala-core-sdk/dist/bridge.d.ts:553
Requests per second (rate limiting)
requestTimeoutMs?
optionalrequestTimeoutMs?: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?
optionalretryInitialDelayMs?: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.