Skip to main content

bridge/interfaces/GalaConnectConfig.md

Configuration for GalaConnect client

Properties​

PropertyTypeDescription
baseUrl?stringGalaConnect API base URL
enableRetry?booleanEnable 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?stringGalaChain API base URL
httpRequestor?HttpRequestorSends the HTTP requests (default: the global fetch)
maxRetries?numberMaximum number of retry attempts (default: 3) Only used when enableRetry is true.
onRetry?(error, attempt, delayMs) => voidCallback invoked before each retry attempt. Useful for logging or monitoring retry behavior.
requestsPerSecond?numberRequests per second (rate limiting)
requestTimeoutMs?numberHow 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?numberInitial delay in milliseconds before first retry (default: 1000) Subsequent retries use exponential backoff (delay doubles each time).
walletAddressstringThe 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.